"search on click list open"
Bootstrap 3.3.0 Snippet by naimansari

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <input type="text" id="myInput"> http://jsfiddle.net/BRDBd/
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script> <script> $(document).ready(function(){ var availableTags1 = ["Adilabad","Agartala","Agra","Ahmedabad","Ahmednagar","Aizawl","Ajmer","Akola","Aligarh","Allahabad","Alwar","Ambala","Amravati","Amritsar","Anand","Anantapur","Andaman and Nicobar Islands","Andhra Pradesh","Angul","Ankleshwar","Arunachal Pradesh","Asansol","Assam","Aurangabad","Baddi","Bahraich","Bangalore","Banswara","Banur","Baramati","Bareilly","Barmer","Barnala","Baroda","Bathinda","Bawal","Belgaum","Bellary","Bengaluru","Bhagalpur","Bharuch","Bhavnagar","Bhilai","Bhilwara","Bhiwadi","Bhiwani","Bhopal","Bhubaneshwar","Bhuj","Bidar","Bihar","Bijnor","Bikaner","Bilaspur","Bokaro","Burdwan","Calicut","Cannannore","Chamba","Chandigarh","Chandrapur","Chennai","Chhattisgarh","Chiplun","Cochin","Coimbatore","Cuddalore","Cuddapah","Cuttack","Dadra and Nagar Haveli","Dahej","Dalhousie","Daman and Diu","Davangere","Dehradun","Delhi","Dhanbad","Dharmasala","Dharuhera","Dharwad","Dhule","Dibrugarh","Dimapur","Durgapur","Ernakulam","Erode","Faizabad","Faridabad","Faridkot","Firozpur","Gajraula","Gandhidham","Gandhinagar","Ganganagar","Gangtok","Gaya","Ghaziabad","Gir","Goa","Godhra","Gorakhpur","Greater Noida","Gujrat","Gulbarga","Guntakal","Guntur","Gurdaspur","Gurgaon","Guwahati","Gwalior","Haldia","Haldwani","Haridwar","Haryana","Himachal Pradesh","Hisar","Hoshiarpur","Hospet","Hosur","Hubli","Hyderabad","Idukki","Imphal","Indore","Itanagar","Jabalpur","Jaipur","Jaisalmer","Jalandhar","Jalgaon","Jammu","Jammu and Kashmir","Jamnagar","Jamshedpur","Jhansi","Jharkhand","Jharsuguda","Jind","Jodhpur","Junagadh","Kakinada","Kala","Kalpakkam","Kamalapuram","Kanchipuram","Kandla","Kannur","Kanpur","Kapurthala","Karimnagar","Karnal","Karnataka","Karur","Kasargode","Kashipur","Katni","Kerala","Khammam","Kharagpur","Khopoli","Kochi","Kohima","Kolar","Kolhapur","Kolkata","Kollam","Koppal","Korba","Kota","Kottayam","Kozhikode","Kullu","Kurnool","Kurukshetra","Lakhtar","Lakshadweep","Lucknow","Ludhiana","Madhya Pradesh","Madurai","Maharashtra","Malappuram","Mamandur","Manali","Mandi","Manesar","Mangalore","Manipur","Mathura","Meerut","Meghalaya","Mehsana","Mizoram","Moga","Mohali","Moradabad","Morinda","Mount Abu","Mumbai","Mumbai Suburbs","Mundra","Munger","Muzaffarpur","Mysore","Nagaland","Nagar","Nagercoil","Nagpur","Nasik","Navi Mumbai","Neemrana","Nellore","Nizamabad","Noida","Odisha","Ooty","Orai","Palakkad","Palghat","Palwal","Panaji","Panchkula","Panipat","Panjim","Pantnagar","Paradeep","Pathanamthitta","Pathankot","Patiala","Patna","Phagwara","Pondicherry","Porbandar","Port Blair","Pune","Punjab","Puri","Quilon","Raigad","Raigarh","Raipur","Rajahmundry","Rajasthan","Rajkot","Rajpura","Ranchi","Ratlam","Ratnagiri","Rewa","Rewari","Rohtak","Roorkee","Rourkela","Rudrapur","Rupnagar","Saharanpur","Salem","Sambalpur","Sangrur","Satara","Satna","Secunderabad","Shillong","Shimla","Shimoga","Sikkim","Silchar","Siliguri","Silvassa","Solapur","Sonepat","Srinagar","Surat","Surendranagar","Tamil Nadu","Tarapur","Telangana","Tezpur","Thane","Thanjavur","Thrissur","Tirunelveli","Tirupati","Trichur","Trichy","Tripura","Trivandrum","Tumkur","Tuticorin","Udaipur","Ujjain","Union Territories","Uttar Pradesh","Uttarakhand","Vadodara","Valsad","Vapi","Varanasi","Vasai","Vasco Da Gama","Vellore","Veraval","Vijayawada","Visakhapatnam","Vizag","Warangal","Wayanad","West Bengal","Yamunanagar"]; $('#myInput').autocomplete({ source: availableTags1, minLength: 0, }).focus(function () { $(this).autocomplete("search", ""); }); }); </script>

Related: See More


Questions / Comments: