I am trying to figure out how to select all the menu items that have a
particular value in a form. For example, let's say you had a form with
10 different yes/no menus, and you wanted to select all of the ones
that are currently set to "yes". Is there a way to do that? I tried
doing something like:

$("option[value='yes'][selected='true'])

That seemed to always return zero results. If I leave out the
'selected' attribute in the expression, it returns the correct number
of elements (10 in this example). But that is the total number of
menus with a 'yes' option, whether or not they are selected.

Any ideas on how I can do this?

Thanks,
Anthony

Reply via email to