1

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();
});

enter image description here

stalwart1014
  • 451
  • 1
  • 9
  • 29

0 Answers0