Skip to content

Commit

Permalink
Update: Modify the form example to use the new $ API method
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan Jardine committed Dec 14, 2011
1 parent 5088e48 commit 9ebabaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/api/form.html
Expand Up @@ -16,7 +16,7 @@

$(document).ready(function() {
$('#form').submit( function() {
var sData = $('input', oTable.fnGetNodes()).serialize();
var sData = oTable.$('input').serialize();
alert( "The following data would have been submitted to the server: \n\n"+sData );
return false;
} );
Expand Down Expand Up @@ -534,7 +534,7 @@ <h1>Initialisation code</h1>

$(document).ready(function() {
$('#form').submit( function() {
var sData = $('input', oTable.fnGetNodes()).serialize();
var sData = oTable.$('input').serialize();
alert( "The following data would have been submitted to the server: \n\n"+sData );
return false;
} );
Expand Down

0 comments on commit 9ebabaf

Please sign in to comment.