Discussion Locked

Javascrpt forms

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Does anyone know if it is possible to dynamically display a set of form fields triggered by clicking a form button. I want to display a table row with additional form fields in it - but only if the user clicks a button.

I'm new to all this so forgive me if I've asked a dum question :)

2 replies

by jay eckles

The easiest way to achieve the effect you describe is to create some number of form fields, put them in layers (div or span elements) and use CSS to hide them. Then when the user clicks on the button, use Javascript to change the CSS properties andshow the "new" form field. Of course, this limits you to a finite number of form fields.

Good luck.

Jay
www.jayeckles.com

This discussion is closed to new replies.