jQuery Datatables adding custom form elements -


i have datatables setup basic init. want able have checkboxes , submit button below table. there way customize information "row" below table?

this looks if add submit button after table enter image description here

this want enter image description here

i need solution accounts javascript being on or off.

your requirement solution accounts javascript being turned off not possible because information row generated when initialize datatable.

the information row wrapped in div tag gets id based off of id of initialized table.

for example, if table declared this:

<table id='mytable'> </table> 

the information row appear in dom this

<div id='mytable_info' class='datatables_info'> showing 1 2 of 2 entries </div> 

to prepend 'delete' button information row, need use fndrawcallback include button each time table rendered.

$("#mytable").datatable(      {            "fndrawcallback": function()             {                  $("#mytable_info").prepend("<input type='button' value='remove'>");             }      } ); 

Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -