Err how do I specify a select drop down field?
Ex:
<select size="1">
<option value="lol">lol</option>
<option value="ok">ok</option>
</select>
I tried some things but it didn't work.

dont put size="1" in![]()
Coming and going...
Highers are getting the better of me
e.g.Code:selected="selected"
Code:<select> <option>One</option> <option>Two</option> <option selected="selected">Three</option> </select>
You don't need to put selected="selected", as selected is a bool value.
just:
Code:<select name="country"> <option value="UK">United Kingdom</option> <option value="CA">Canada</option> <option selected value="US">United States</option> </select>
No.. you do <option selected value="US">United States</option>
options go in selects.
Yeah there is, and yeah that would work.. why would you think it wouldn't work?
Want to hide these adverts? Register an account for free!