Dynamically change data-native-menu attribute on form selects
Hi all,
I have a use case where I'd like to set the data-native-menu attribute on selects to true when the list gets really big but to false when it's less than 10 items.
I tried setting the attribute and then do an $('#myelement').trigger('change'); but it doesn't seem to change the behavior.
Can someone tell me how to actually dynamically change the behavior? Changing the attribute alone is obviously not enough :)