All,
I have the following select box:
<select class="event_selection" name="Event[]" id="Event_<?php echo $i; ?>" >
<option value="original">Select Event...</option>
<option value="1">One</option>
<option value="2">Two</option>
</select>
I have a couple of these on my form. When a user selects a value from the drop down I’d like to make sure that the value isn’t already selected on another select that has the same class.
Is there an easy way to do this? If so, can you please point me in the right direction?
Thanks!
I’ve made it so that you cannot select any value twice:
Live demo: http://jsfiddle.net/QVbQ6/2/