Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic Forms with Javascirpt

Status
Not open for further replies.

ice7899

Programmer
May 14, 2006
59
GB
I came across a site recently which had 2 yes / no radio buttons where you had to click whether you were a member or not.

If you clicked yes, then the form changed to elements where you could input login info. If you clicked no, the form changed to include a completely new form containing elements that allowed you to input your address.

Are there any pointers as to how this is achievable in javascript

 
Build the entire page with both sections in divs and set the display on the relevant divs to none. Then set the display to block on the appropriate divs when one or the other radio button is selected.

Lee
 
Thanks. Will this work in all browsers to your knowledge
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top