PDA

View Full Version : Hiding a selection in dropdown



Snat
July 3rd, 2009, 14:06
Hello. I am having a problem at the mo. I got a HTML form that I want to use however I want to hide one (the one in bold) however can still select it if hardcoded.

<td class="optionselect"><select name="basket_rateType[398]" id="rateTypeCategory" onChange="this.form.submit();">
<option value="0">Rate Category 0: Select synch. license category from below:</option>
<option value="1">Rate Category 1: Film,TV, Radio & Internet Commercial Broadcast</option>
<option value="2">Rate Category 2: Corporate Videos & Website beds</option>
<option value="3" selected="selected">Rate Category 3: Commercial Advertising</option>
<option value="4">Rate Category 4: Stings, Transitions, hits, Sound Effects and Soundsets</option>
<option value="5">Rate Category 5: Charities & student projects (free download)</option>
<option value="6">Rate Category 6: Paid by subscription</option>
<option value="7">Rate Category 7: "Try before you buy" (free download)</option>
<option value="8">Rate Category 8: 20 tracks for free limited offer</option>

Dharmik
July 4th, 2009, 08:10
Add comment line before code.
Edit
Or just remove option value so even user select it,it won't process anymore..

Snat
July 4th, 2009, 09:32
The thing is, I don't want people to be able to select it however I want to be able to select it by hand coding it.

So basically, if I code it as selected it will work but they are unable to select it themselves.