I am using select2.js Version: 3.4.3 with bootstrap I have one dropdown.
When I click on dropdown, I get a list with search text fields.
But I my cursor is not focused on search text fields.
<form:select path="yearAge" id="yearAgeId"
cssClass="form-control search-select static-select">
<form:option value="">Years</form:option>
<c:forEach var="i" begin="1" end="125" >
<form:option value="${i}" label="${i}"></form:option>
</c:forEach>
</form:select>
$(".search-select.static-select").select2({
placeholder: $(this).attr('placeholder'),
allowClear: true
});
When I click on dropdown, pointer focus should set to search text field automatically.