Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to remove Textbox Element using DOM in HTML

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic