File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Add text when 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 "Add text when "add" button is clicked" Watch "Add text when "add" button is clicked" New topic
Author

Add text when "add" button is clicked

Ambika Jain
Ranch Hand

Joined: Jan 27, 2005
Posts: 48
Hi,

In my jsp page, there is an option for adding new entries. I have a "add" button. I want to show the text field (in which info will be typed) to be
shown only if I click on "Add". How do I do this ?

Thanks


Ambika Jain
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60775
    
  65

Moved to HTML/Javascript.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60775
    
  65

Use CSS to initially hide the text field, and reveal it when the Add button is clicked. Look up the display CSS attribute in order to hide/show elements.
Ambika Jain
Ranch Hand

Joined: Jan 27, 2005
Posts: 48
Can you please show some example. I have not done this before.

Thanks,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Add text when "add" button is clicked
 
Similar Threads
how do i use checkbox as an active/inactive button for a form?
Two Submit buttons in JSP Page
Aligning text vertically within a JButton
dynamic text box
dynamically adding textboxes