dexterpante

Results 4 comments of dexterpante

Hello, any updates on this? This is a good improvement if selected option is added.

> This JS works, but obviously is limited to only running onload: > > ``` > function remove_all_option() { >   document.getElementById("Your ID Here").getElementsByClassName("selectized")[0].selectize.removeOption(""); > } > window.onload = remove_all_option; >...

> This JS works, but obviously is limited to only running onload: > > ``` > function remove_all_option() { >   document.getElementById("Your ID Here").getElementsByClassName("selectized")[0].selectize.removeOption(""); > } > window.onload = remove_all_option; >...

> I've known this to not work in Firefox, it might be better to replace "window.onload" with "$(document).ready" to be more cross-browser compatible. You'd need to give an example of...