3
rated 0 times
[
8]
[
5]
/ answers: 1 / hits: 70093
/ 11 Years ago, sat, july 27, 2013, 12:00:00
I have a searchable list, created using JQuery Plugin from: http://plugins.jquery.com/searchit/
But i want some value to be selected by default when the list box shows up first time. Even though i have 'selected' mentioned in the option tag (Rockford in ex below). This part is not working.
Pls see here sample here:
$(select).searchit( { textFieldClass: 'searchbox' } );
Type the search text:
<br/>
<select id=listBox1>
<option>Robinhood</option>
<option selected >Rockford</option>
<option>Rome</option>
<option>Ronda</option>
<option>Rondon</option>
<option>Rondonopolis</option>
<option>Rongelap</option>
</select>
Any idea? Or any other solution...
More From » jquery