Closed happyjohnnylin closed 5 years ago
The list_name=
setter will only work with native select elements. From what I can tell from the demo site (https://materializecss.com/select.html), the default is not a native select. It's actually a text field with ul/lis.
You'll need to interact with the user visible fields - eg:
If you need help with doing this, please let me know.
Hi Cheezy,
I am using Materializecss for my web, and I have a select dropdown list whose options are added by jQuery. I can print out the options text using
list_name_options
, however, I don't know why I can't set the selected value usinglist_name=
.