Submit button function occurs during Add/Delete button press
Submit button function occurs during Add/Delete button press
benpetersen
Posts: 2Questions: 0Answers: 0
I have a submit button that does the following
[code]$('#form').submit( function()
{
var sData = oTable.fnGetNodes( );
alert(sData);
return false;
} );
oTable = $('#example').dataTable(); //more in here, but the point is given
[/code]
But this submit function is called whenever I press the Add/Remove, so I have an alert showing [object HTMLTableRowElement] displayed whenever I press a button. Very annoying and I can't figure out why. If you've figured it out, please let me know.
[code]$('#form').submit( function()
{
var sData = oTable.fnGetNodes( );
alert(sData);
return false;
} );
oTable = $('#example').dataTable(); //more in here, but the point is given
[/code]
But this submit function is called whenever I press the Add/Remove, so I have an alert showing [object HTMLTableRowElement] displayed whenever I press a button. Very annoying and I can't figure out why. If you've figured it out, please let me know.
This discussion has been closed.