jquery load content from post

I am posting to a form using jquery and trying to load only the table from the rerturned page into a div. The code is show below. The problem is the form form is not being submitted with a POST.  jquery documentation for load() states "The POST method is used if data is provided as an object; otherwise, GET is assumed." - could this be the problem?
$("#Results").load("processform.php table", $("#Form").serialize());

Open in new window

LVL 1
kirkheaton25Asked:
Who is Participating?
 
leakim971Connect With a Mentor PluritechnicianCommented:
Use serializeArray() instead serialize() : http://api.jquery.com/serializeArray/

try the following too :
$.post("processform.php", $("#Form").serializeArray(), function(page) {
    $("#Results").append( $("table", page).html() );
})

Open in new window

0
 
kirkheaton25Author Commented:
Thanks, serializeArray() did the trick.
0
All Courses

From novice to tech pro — start learning today.