File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes showing fields dynamically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "showing fields dynamically" Watch "showing fields dynamically" New topic

showing fields dynamically

Raj Puri
Ranch Hand

Joined: Apr 24, 2003
Posts: 189
I have an HTML form. Only problem I have that depending on the a menu item user choses it shows certain fileds and disables others. Now, this is not nice as in some cases most are disabled. I need to change it so that it shows only the onces that are needed. I recoded it using frame and having seperate HTML for each option but that also has problems as further down the line I show report that shows in a frame in which these HTML forms open. So I am back to not using frames as they limit view area.

What other way I can do this?

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Here is the basic walkthrough:

Place the items inside a div

code to hide a div

You can call the function with

I agree. Here's the link:
subject: showing fields dynamically
jQuery in Action, 3rd edition