Link to home
Start Free TrialLog in
Avatar of cbrune
cbrune

asked on

How do I set the dropdownlist with a value of custom to the current selected item in jquery?

How do I set the dropdownlist with a value of custom to the current selected item in jquery? code attached

 <select class="dropDown optional-degree" data-val="true" data-val-number="The field Cost Tools must be a number." data-val-required="The Cost Tools field is required." id="AttackSequenceEditModels_CostToolsId" name="AttackSequenceEditModels.CostToolsId"><option value=""></option><option data-score="0.2" value="1">Low</option><option data-score="0.6" value="2">Medium</option><option data-score="0.9" value="3">High</option><option data-score="0" value="4">Custom</option></select>
Avatar of Mrunal
Mrunal
Flag of India image

Hi cbrune, Can you pl explain more what exactly you want to achieve?

Mean while you can look at this example. hope this helps you.

http://jsfiddle.net/gTCt4/
Avatar of cbrune
cbrune

ASKER

i want to have a button on the page that sets the dropdown to custom
ASKER CERTIFIED SOLUTION
Avatar of Mrunal
Mrunal
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial