JQuery pikclist plug-in function is very strong, today from the Forum blog to see the use of the introduction, but also encountered some problems can not be solved, special to help!
The jquery pikclist plugin was used in the form, and I knew that using the Getpickeditems () function would get all the entries in the Pickedlist, with the return value being an array of jquery objects,
Question one:
The array values that can be returned, how to submit to PHP with a single table, I want to use $_post in PHP to receive all the entries in the Pickedlist to manipulate the database query.
How does this come true?
Question two:
After clicking the Submit button the page is loaded again because my form is submitted to myself. Pickedlist will be emptied, how to make the contents of it unchanged?
Reply to discussion (solution)
Where did the master go?
First question:
For example, the JS variable obtained is param
$.post ("Address", Param,funciton () {
Callback
});
PHP side Print_r ($_post)
Let's try this.
The array of objects in the impression can be sent directly by Ajax, no, you just turn the format in JS
A second question
Several methods
1. Call JS to save the list contents to a cookie at the time of submission
2. Submit do not use submit write, with the button trigger JS Ajax, or onsubmit return false,
Then the Ajax callback to get the data modification page to modify the section, this is more flexible, although the trouble points
Thank you for the advice, but I will not use Ajax, have found a solution,