Answer the question
In order to leave comments, you need to log in
Selectize.js - how to select the desired item from the list using jQuery?
Tell me , who used the selectize.js library , how to select the desired list item using jQuery?
Ordinary selects are selected according to the following principle:
$('#select option[value=3]').prop("selected", true);
Answer the question
In order to leave comments, you need to log in
It's hard to say why setValue() doesn't work for you. Try like this:
var $select = $('#select').selectize();
$select[0].selectize.setValue("3");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question