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>
cbruneAsked:
Who is Participating?
 
MrunalConnect With a Mentor Commented:
Check this:

http://jsfiddle.net/gTCt4/1/

This sets dropdown list value to custom on button click.
0
 
MrunalCommented:
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/
0
 
cbruneAuthor Commented:
i want to have a button on the page that sets the dropdown to custom
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.