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 How to remove Textbox  Element using DOM in HTML Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to remove Textbox  Element using DOM in HTML" Watch "How to remove Textbox  Element using DOM in HTML" New topic
Author

How to remove Textbox Element using DOM in HTML

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

i have a simple jsp page with two TextFields and a Button , and on onclick of the button , i am trying to remove one of the TextField , but its not working .please help me on this .


Save India From Corruption - Anna Hazare.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You reference your form correctly
document.getElementById('myform')

but for some reason when you reference the textbox, you forget all about how to reference elements.

Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
FYI: Posting this:
Ravi Kiran V wrote:
... its not working ...

tells us nothing. Would you go to the doctor and say I am sick, fix me? No you would tell them what is wrong exactly.

Eric
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

but for some reason when you reference the textbox, you forget all about how to reference elements.



Thank you , i changed to

and its working .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to remove Textbox Element using DOM in HTML