php - How to make item in list display automatically when cursor moves on it? -
i have made drop-down list using "option" in "select" tag. want option displayed in drop-down list without clicking on option menu. how can it?
<select class="dropdown" tabindex="8" name="navyop" onchange="test(this);" data-settings='{"wrapperclass":"metro"}'> <option value="1">student of year</option> <option value="2">jab tak hai jaan</option> <option value="3">3 idiot</option> <option value="3">chennai express</option> </select>
you can set default value of dropdown box adding selected
keyword 1 of <option>
elements:
<select class="dropdown" tabindex="8" name="navyop" onchange="test(this);" data-settings='{"wrapperclass":"metro"}'> <option value="1" selected>student of year</option> <option value="2">jab tak hai jaan</option> <option value="3">3 idiot</option> <option value="3">chennai express</option> </select>
if use code, option 1 selected automatically.
for more info, have at page.
Comments
Post a Comment