serializearray

How to get the POST values from serializeArray in PHP?

Hi, I am trying this new method I've seen serializeArray(). //with ajax var data = $("#form :input").serializeArray(); post_var = {'action': 'process', 'data': data }; $.ajax({.....etc So I get these key value pairs, but how do I access them with PHP? I thought I needed to do this, but it won't work: // in PHP script $data = json_d...

jQuery serializeArray not picking up dynamically created form elements

Hi, I've got a form that's dynamically created using ajax (as data for the form elements has to come from a database) and I want to serialize the elements of the form to submit by ajax. I'm currently just testing my theory using code from the jQuery website just to see if I can pick up the form elements and this is where the problem lies...

use serializeArray for non form objects..?

hello there - trying to post some data built from some none form elements but can't seem to crack it. how can i create a an array in the same format as serializeArray() does with form fields? tried several variations on this but it only picks up the last .active tag? any help appreciated! $('li.tag.active').each(function() { ...