Page 1 of 1

Multiple Select Change Event

Posted: Wed Dec 05, 2018 5:30 pm
by LawrenceDesign
In Metro4 when I use data-role="select" and use multiple attribute, the normal javascript on('change') event doesn't fire :(

When I try the data-on-change attribute the event fire when I add an item to selected items, but not when I remove a selected item :(

Re: Multiple Select Change Event

Posted: Wed Dec 05, 2018 6:39 pm
by olton
All works fine https://sandbox.org.ua/olton/code/kgDmB4b2al
Check your Metro 4 version. Must be 4.2.30

Re: Multiple Select Change Event

Posted: Wed Dec 05, 2018 7:04 pm
by LawrenceDesign
Oh thank you. The new version is ok :)

Re: Multiple Select Change Event

Posted: Wed Dec 05, 2018 9:13 pm
by LawrenceDesign
I have another problem with select and multiple select. When I change the value with jquery $('#xy').val('newval') the select doesn't follow this change visually.

Re: Multiple Select Change Event

Posted: Wed Dec 05, 2018 9:23 pm
by LawrenceDesign
Sorry.. I got it... data('select').val( working.. Sorry