freelance84 Posted August 31, 2010 Share Posted August 31, 2010 Is it possible to have the <select> tag have a default value which isn't in the options list? ie something to the tune of: <select name="gamer_name" value="select a name"> <option>john</option> <option>dave</option> </select> Quote Link to comment Share on other sites More sharing options...
haku Posted September 1, 2010 Share Posted September 1, 2010 No. The default value can only be a value in the <option>s. Quote Link to comment Share on other sites More sharing options...
freelance84 Posted September 1, 2010 Author Share Posted September 1, 2010 Thanks. After a messing around i've worked in a work around so the default is "select a name" but if the user hits go on this option js or php does nothing with it. Bit of a faf, shame there is not default non-option Quote Link to comment Share on other sites More sharing options...
haku Posted September 1, 2010 Share Posted September 1, 2010 The way you have done it is actually the best way to do it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.