Thread View: aus.computers.java
2 messages
2 total messages
Started by Lucy
Thu, 07 Dec 2000 00:00
form.elements() problem - please help
Author: Lucy
Date: Thu, 07 Dec 2000 00:00
Date: Thu, 07 Dec 2000 00:00
9 lines
966 bytes
966 bytes
I have a form with 10 elements (fields). If someone picks the first radio button from field #4, I would like the form.element to jump to element #9. I know enough to know there is a form.elements(), but do not know how to manipulate it. Can someone PLEASE reply and help... Thanks in advance...
Re: form.elements() problem - please help
Author: Alan Boldock
Date: Thu, 07 Dec 2000 00:00
Date: Thu, 07 Dec 2000 00:00
44 lines
2146 bytes
2146 bytes
I guess your talking about JavaScript rather than the "Real Thing" (sorry Coke) I guess you can have a onChange event on the radio button then in the function the onChange event runs you can get the form elements and check the value of the radio button using the document.form[].elements[radiobut1].value='whatever' then you can change the "focus" of the input, ie change where the cursor is using the Input.focus() method on the element you want to move to. note: focus doesn't work well in Unix and then only on input fields that display text. note I haven't tried this I just searched it out in my JavaScript book. Post (maybe mail or to this group) I you want me work it more specifically. I guess this is just to offer some direction to you. Perhaps I can recommend a good JS book? try O'Reilly JavaScript The Definitive Guide... I don't leave home without it Alan Boldock alan@boldenterprise.com.au "Lucy" <lucy@dhimaging.com.au> wrote in message news:qmIX5.153901$e5.102073@newsfeeds.bigpond.com... > > I have a form with 10 elements (fields). > If someone picks the first radio button from field #4, > I would like the form.element to jump to element #9. > I know enough to know there is a form.elements(), > but do not know how to manipulate it. > Can someone PLEASE reply and help... > > Thanks in advance... > > > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads