From 9ebabaf08901f15a3d3c2befd0e818e85c10eff2 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Wed, 14 Dec 2011 17:47:22 +0000 Subject: [PATCH] Update: Modify the form example to use the new $ API method --- examples/api/form.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/api/form.html b/examples/api/form.html index d79c7923..4fcfa570 100644 --- a/examples/api/form.html +++ b/examples/api/form.html @@ -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; } ); @@ -534,7 +534,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; } );