BUT JavaScript will :
{ something: "blah", something_else: "hem" }
Then you just have to pass it to $.post as explained in the doc http://docs.jquery.com/Ajax/jQuery.post
(that's the second parameter, data)
Michel Belleville
2009/12/1 ST <stathis.portaritis@googlemail.com>
Hi list,
I need to dynamically create an associative array in jquery, then pass
it to a php script for processing (using the $.post method), in order
to receive a value of some sort.
The array is generated every time the user performs a change in a
select list element, and is of the following structure:
myArray = [ ID => value, ID => value, ..., ID => value]
My questions:
- How can I define an associative array?
- How can I pass it on a php script using $.post?
Thanks in advance!
St
No comments:
Post a Comment