fnRender, button with onclick
fnRender, button with onclick
Hi, here's my code:
[code] bTable = $("#tableAddCategories").dataTable( {
"bPaginate": false,
"bRetrieve": true,
"bFilter":false,
"bInfo": false,
"sAjaxSource": "files/scripts/GetJSON_Categories.php",
"aoColumnDefs": [{
"fnRender": function ( oObj ) {
return \'\';
},
"aTargets": [ 0 ]},
{
"bVisible": false,
"aTargets": [ 2]
}]
});[/code]
i want to get the onclick working, how can i do that? if it is not possible, whats a good work around? and dont wonder about the \
[code] bTable = $("#tableAddCategories").dataTable( {
"bPaginate": false,
"bRetrieve": true,
"bFilter":false,
"bInfo": false,
"sAjaxSource": "files/scripts/GetJSON_Categories.php",
"aoColumnDefs": [{
"fnRender": function ( oObj ) {
return \'\';
},
"aTargets": [ 0 ]},
{
"bVisible": false,
"aTargets": [ 2]
}]
});[/code]
i want to get the onclick working, how can i do that? if it is not possible, whats a good work around? and dont wonder about the \
This discussion has been closed.
Replies
Allan
and how could i use a jquery event? $(#mybtn).click? or something like that? since i fill the table dynamically its very handy to just call the onclikc instead of doing some loops to get the event working. or can i say, if any button in the form x is clicked get its value?
got it, just with onclick=myfunc(this.name/value);
thanks =)