html - Drop down list box -


do know how make dropdown list box searchable typing in it? have checked plugins select2 , few others, of them multiple options selectors. want work same dropdown list boxes except searchable typing in it

you use semantic-ui purpose. install stylesheet(s) , javascript scripts it's instructions , place them html document.


taken semantic-ui documentation:

searching dropdowns

using search selection dropdown allow users search more through large lists. can converted directly form select element.

html code:

<select class="ui search selection dropdown" id="search-select">   <option value="">state</option>   <option value="al">alabama</option>   <option value="al">alabama</option>   <option value="ak">alaska</option>   <option value="az">arizona</option>   <option value="ar">arkansas</option>   <option value="ca">california</option>   <option value="oh">ohio</option>   <option value="ok">oklahoma</option>   <option value="or">oregon</option>   <option value="pa">pennsylvania</option>   <option value="ri">rhode island</option>   <option value="sc">south carolina</option>   <option value="sd">south dakota</option>   <option value="tn">tennessee</option>   <option value="tx">texas</option>   <option value="ut">utah</option>   <option value="vt">vermont</option>   <option value="va">virginia</option>   <option value="wa">washington</option>   <option value="wv">west virginia</option>   <option value="wi">wisconsin</option>   <option value="wy">wyoming</option> </select> 

javascript code:

$('#search-select')   .dropdown() ; 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -