Require a dropdown field
Posted: 24 June 2008 08:35 AM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2007-01-27

I have a form with a dropdown menu that needs to be a required field, but the module seems to always think that a seleciton has been made.
I “disabled” the first form option (see below), thinking that this wouldn’t register, but apparently it doesn’t work that way. Is there another way to require a selection?

<select name="time" class="medium">
<
option  disabled="disabled">Choose a Time</option>
<
option value="Day">Day</option>
<
option value="Evening">Evening</option>
<
option value="Saturday">Saturday</option>
</
select>

Profile
 
 
Posted: 24 June 2008 08:41 AM   [ Ignore ]   [ # 1 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18

Your only other method would be to use some Javascript validation smile

 Signature 
Profile