Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Javascript, h:panelGroup

 
Bishal Ghimire
Greenhorn
Posts: 26
Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am able to hide and display panelGroup based on onclick event of a checkbox. My panelGroup includes bunch of textboxes. So, how can I delete contents of textboxes inside the panelGroup while hiding and redisplaying.

 
roby george
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
when you hide the panel at that that time you want to delete the content of the text box.

To do this just use
document.getElementById("txtBxId").value="";


let me know if it fullfill your requirement.

Thanks
 
Bishal Ghimire
Greenhorn
Posts: 26
Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for the suggestion. However, my question was is there any way I can clear all the textboxes inside that Panel at once.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic