You need to save the original value somewhere. You can store it in a
Javascript object/array. Though that requires generating the
Javascript beforehand. If you want to actually put that value in the
HTML, I suggest the jQuery Metadata plug-in.
http://plugins.jquery.com/project/metadata
Basically it allows you to store additional data in your HTML and
easily get/set it.

On Sep 2, 2:35 pm, supermozzie <maureen.che...@gmail.com> wrote:
> I've got 4 identical combo boxes like the one below.
>
> <select name='cbActionType' class='ActionType'>
>         <option value="Retained">Retained</option>
>         <option value="RolledOver">Rolled-over</option>
>         <option selected="selected" value="Recommended">Recommended</option>
>         <option value="NotRecommended">Not recommended</option>
> </select>
>
> I need to limit the combo box, so that only 1 can have the
> "Recommended" value at any one time. When the user tries to set other
> combo boxes to "Recommended", i need to cancel the change event, set
> the combo box to its original value, and display a warning message.
>
> I have no problem displaying the message, but how can i change the
> combo box to its original value?
>
> Thank you!

Reply via email to