I have a bootstrap combobox defined and it is working fine except - I tried to get it to select all the text in the preselected option when the control gets focus. None of the events seem to be firing.
I have tried to use jquery $("#lookup").on("focus",function() {...});
will not fire. I have tried putting onclick=""
and onfocus=""
in the tag itself, neither fire.
Items to add:<br />
<select class="combobox input-small form-control" name="normal" id="lookup">
<option value="0" selected="selected" >type...</option>
@{
foreach (var item in Model.MyFoodsDropDown)
{
<option value="@item.NDB_No">@item.Shrt_Desc</option>
}
}
</select>
When I click on the combobox it places my cursor at the end of "type..." and I have to do a ctrl-a or use the mouse to select all before typing. It would be really cool for it to select all on focus.