I'm using selectize.js to style text boxes, and it's working fine.
$("select[name='somename']").selectize({
valueField: 'id',
labelField: 'name',
searchField: 'name',
options: selectableThings,
render: {
option: function(item, escape) {
return render(someTemplate, item);
},
item: function(item, escape) {
return render(someTemplate, item);
}
}
});
However I have a limited range of items and do not wish for the cursor (flashing |) to be enabled all the time. I've searched through the API docs and the source but can't find anything obvious.
Is there something inbuilt to disable the flashing cursor?
Edit originally has this as 'disabling input' but it looks like the cursor can't be used for input (and disabling input still shows the cursor).
maxOptions: 1
and it'll act as a "decoratedselect
" – Prayer