View Full Version : moving around a form
chuckles
11-05-2002, 04:51 PM
May seem like a dumb questions as I'm new to JS.
I have a lengthy form which requires that the user returns to a specific location on the form if a specific radio button field value is checked.
focus() doesn't work as the field is not an editable text field.
How do I return the user to a specific location on the form?
valeria_vi
11-05-2002, 05:04 PM
umm, may i suggest a non-javascript solution (that is, if i understand your question correctly)?
set an anchor on the page and when teh radio button is clicked, send the user to the anchor.
chuckles
11-05-2002, 07:06 PM
Valaria
Thanks for your reply.
I tried doing the anchor thing already, and the problem is that a new form is opened and all fields are cleared.
I want ot go to a location on the existing form without opening a new one.
Thanks again
chuckles:confused:
beetle
11-05-2002, 08:17 PM
Just a regular named anchor is all you need, chuckles.
<form>
<input type="text"><br>
<input type="text"><br>
<input type="text"><br>
<input type="text"><br>
<input type="text"><br>
<a name="myAnchor"></a>Here<br>
<input type="text"><br>
<input type="text"><br>
<input type="text"><br>
<input type="text"><br>
<input type="text"><br>
<a href="#myAnchor">Back up</a><br>
<input type="text"><br>
<input type="text"><br>
<input type="text"><br>
<input type="text"><br>
<input type="text"><br>
</form>
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.