Submit button function occurs during Add/Delete button press
Submit button function occurs during Add/Delete button press
![benpetersen](https://secure.gravatar.com/avatar/5af2ce8dcb6db87a229cec309424d87b/?default=https%3A%2F%2Fvanillicon.com%2F5af2ce8dcb6db87a229cec309424d87b_200.png&rating=g&size=120)
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.