I've got a Jquery UI sortable list with add item option. I want to gather these items up and submit them. what input type should I use?
-
Take a look at the serialize method of the sortable list.api.jqueryui.com/sortableAlvaro Flaño Larrondo– Alvaro Flaño Larrondo2015-02-14 20:59:20 +00:00Commented Feb 14, 2015 at 20:59
-
thanks - what should the HTML input type be for thisweaveoftheride– weaveoftheride2015-02-14 21:21:23 +00:00Commented Feb 14, 2015 at 21:21
-
The serialize method returns a string, so you can use a text input, or a hidden oneAlvaro Flaño Larrondo– Alvaro Flaño Larrondo2015-02-14 21:33:45 +00:00Commented Feb 14, 2015 at 21:33
Add a comment
|
1 Answer
Use the serialize method of the sortable object (http://api.jqueryui.com/sortable/). This method returns a string that you can send using a text input or a hidden one.