Two values to a dropdown

Ron 16 Aug, 2014
Hello,

I need to have two values in a drop-down select field:

 <select id="equipment" name="equipment" required="true" style="font-family:Verdana, Geneva, sans-serif; width:480px; font-size:20px; border:1px solid #999;" onChange="change_selection();">

<option value="0" selected="selected" >Select Your Equipment</option>
<option value="1">Equip_1</option>
<option value="2">Equip_2</option>
<option value="3">Equip_3</option>
<option value="4">Equip_4</option>
<option value="5">Equip_5</option>
<option value="6">Equip_6</option>
<option value="7">Equip_7</option>
</select>


I have been searching the web for an answer but I am unable to find. The one's I find I cannot understand. WOuld I get help on this.

Thanks

Ronn
GreyHead 16 Aug, 2014
Hi Ronn,

You can enable multiple selections by setting Multiple to Yes in the drop-down settings. You will probably also need to set the size to more than 1.

If you want to limit the selection to two items then you will need to add some Custom JavaScript to check the number of items selected.

Bob
Ron 16 Aug, 2014
Thanks bob,

I know the multiple option. I want to tow values to a field. I tried javascript but could not find any.

Ron
GreyHead 16 Aug, 2014
Hi Ronn,

Then I'm sorry but I don't understand your question - what do you mean by two values to a field?

Bob
Ron 17 Aug, 2014
Hi Bob,

I am always bad a explaining rightly. However I have been able to solve it thanks for your attention.

Best wishes

Ron
This topic is locked and no more replies can be posted.