I have a native HTML select with options like this…
<select id="fontpicker">
<option data-fontid="0" data-family="'Lucida Sans Unicode', 'Lucida Grande', sans-serif, 'Segoe UI Emoji'">Lucida (default)</option>
<option data-fontid="1" data-family="Georgia, serif, 'Segoe UI Emoji'">Georgia</option>
</select>
I want to replicate this somehow using jqxDropDownList
I have tried just creating it directly from the select via $(“#fontpicker”).jqxDropDownList(etc), but it doesn’t seem to copy the data attribs in any way. Thats fine, I didn’t really expect it to.
But is there a way I can assign and retrieve .data() attribs on the individual jqxDropDownList options?
Thanks