Selectize js submitting only last selected item

ساخت وبلاگ

Vote count: 0

I'm currently using Selectize.js with a 'select' item and multiple options. My html is something like:

So far so good. The items are being loaded correctly and until this point everything works great. The issue is that when the form is submitted only the last value selected is the one that is available, so if I selected multiple items I'm getting just one:

["record_genre"]=> string(1) "1"

Here's my JS setup:

$('.multi-selectize').each(function(){ //console.log($(this)) $(this).selectize({}) })

Any suggestions?

Thanks.

asked 1 min ago
johansebasb

back soft...
ما را در سایت back soft دنبال می کنید

برچسب : نویسنده : استخدام کار backsoft بازدید : 176 تاريخ : دوشنبه 27 شهريور 1396 ساعت: 13:35

خبرنامه