Hi,
  var val1 = $("#seasonmember").children("option:selected").attr
("value");
  var val2 = $("#season").children("option:selected").attr("value");
  validate both val1,val2

Regards
sure
On Mar 11, 10:57 am, Mark King <m...@ampersand.net.au> wrote:
> Hi.
>
> I have two select boxes for differrent classes of tickets , like so:
>
> <select name="seasonmember" id="seasonmember">
> <option value="0">0</option>
> <option value="1">1</option>
> <option value="2">2</option>
> <option value="3">3</option>
> <option value="4">4</option>
> <option value="5">5</option>
> </select>
> <select name="season" id="season"
> <option value="0">0</option>
> <option value="1">1</option>
> <option value="2">2</option>
> <option value="3">3</option>
> <option value="4">4</option>
> <option value="5">5</option>
> </select>
>
> I want to validate that at least one ticket has been purchased. I
> would like to try to do this with the validate plugin, more for the
> purposes of R&D than anything else (I could write some code to just
> add up the values, but that's not really the point).
>
> How would I go about doing this?
>
> Thanks,
> Mark

Reply via email to