QuickForm hierselect get last value with javascript
| From: | Köteles Zoltán | Date: | Fri, 17 Jun 2011 15:48:40 +0000 |
| Subject: | QuickForm hierselect get last value with javascript | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-31139@lists.php.net to get a copy of this message | ||
Hello,
How can I get the last selected value with javascript in QuickForm hierselect?
Example I have 3 select box with hierselect. If I change the first select I'd like to run my ajax script with the second selected option value. If I change the second select I'd like to run my ajax script with the third selected option value. And so on...
I don't know how many selects are in the hierselect (maybe only 2, but sometimes 3 or 4 or more)
How can I do that?
Thanks a lot
ZoTyA