jquery multiselect selected data order

前端 未结 4 549
耶瑟儿~
耶瑟儿~ 2020-12-20 21:44

I am using jquery multiselct from this page http://loudev.com/. It works well but now the system requirements need this multiselect to past the data in the order that have

4条回答
  •  感动是毒
    2020-12-20 22:34

    Heres what I got so far. I used the callback function of the plugin and store the values into the hidden field and convert that to array. When the value is deselected itll also be removed into the hidden input field. Ive tried this and it worked!

    //sample form
    
    //the jquery script with callback that sets the value into the hidden field //the PHP workaround

提交回复
热议问题