I have a form with four select boxes with cascading dependency, i.e.
when you make a selection on #1 it populates #2 with options. A
selection in #2 populates #3, etc. This eventually leads to a dollar
amount being calculated.

My problem is when the user selects the "no selection" first option in
the #1 select box. I need to "reset" the other three select boxes.
However, the following throws no errors but does not work:

$("selectTwo","selectThree","selectFour").selectedIndex = 0;

The following does work, but come on!

$("selectTwo").selectedIndex = 0;
$("selectThree").selectedIndex = 0;
$("selectFour").selectedIndex = 0;

The same holds true when I try to set the value of multiple text/
hidden fields:
$("textTwo","textThree","textFour").value= ""; fails to do anything,
where individual calls work fine.

What should I do different to get this to work on one call like it
should?

Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to