I'm using selectizejs to an input field. The problem is when I double click the input, it doesn't select all the text within it. Below is the function that I've come up with but doesn't work:
$('.selectize-input').on('dblclick', function() {
var item = $(this).find('.item')
console.log(item)
item.text().select();
});