I have this,
<select id="rid" style="border: 1px solid #ccc;" name="rid">
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
<option value="4">Option 4</option>
<option value="5">Option 5</option>
<option value="6">Option 6</option>
</select>
and i have this links that triggers an event,
<a href="#">Disable Option 1</a><br />
<a href="#">Disable Option 2</a><br />
<a href="#">Disable Option 3</a>
Now if I click Disable Option 1, this would disable Option 1 from the selection dropdown. I’m thinking, by using the attribute value, I can specify what option to disable with regards to what link I will click but I am lost. How would I disable any option on the dropdown just using the value attribute?
Edit:
Setup links like below,
And change code like below,
DEMO: http://jsfiddle.net/vPhJc/1/
If you setup links like below,
Then you can
DEMO: http://jsfiddle.net/vPhJc/