I'm trying to make a box to select different options and proccess its information. I want to get a result like this:
It's a jQuery plugin called jQuery Select2
I was seeing that it isn't contentEditable div, it has only a tabindex with "-1" value to can focus this element.
I was looking for an answer but I found only about contentEditable elements or inputs or textareas
I want to set the caret position to the end after it gets focused.
Here's my JSFiddle:
$(document).ready(function () {
$('#selector').on('focus', function () {
//..some code to pos the caret
});
});
I was thinking on something like that