This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes strugling new bee Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "strugling new bee" Watch "strugling new bee" New topic

strugling new bee

vivek sivakumar
Ranch Hand

Joined: Aug 09, 2001
Posts: 187
i have a 3 form elements eg called as. DocID ,All and zustand.
zustand is a array of selection boxes, my question is that if a user selects a option from select box(zustand) , then the element number of the selection box should be popped up!
To give u a scenario , say for example im selecting the select box (under zustand!! )if i select the 3rd selectbox(zustand[2]) then i should get its element number in this case which is 11. (select box what i selected is the 11th element of this form--which is the answer but i dont know how to put this interms of codecan u help me??)

SCJP, SCWD <br />A farmer learns more from a bad harvest than a good one.
Aaron Webb

Joined: Aug 16, 2001
Posts: 17
I'm not sure on this without looking into it, but just off the top of my head you could loop through the form elements and when you find the one matching the one you selected, check the value of your counter. Hope that makes sense.
I agree. Here's the link:
subject: strugling new bee
jQuery in Action, 3rd edition