This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Dynamically create checkbox and label 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 "Dynamically create checkbox and label" Watch "Dynamically create checkbox and label" New topic
Author

Dynamically create checkbox and label

Ravi Kotha
Ranch Hand

Joined: Mar 02, 2006
Posts: 53
Hi all,

I have a task. I am getting a xml reponse from backend, which are "<device name="label1" >" tags. I have to create a check box and a label for each <device> tag. How can I do that using Javascript and HTML. I have the option to use AJAX. Any ideas??
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
look into document.createElement

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamically create checkbox and label
 
It's not a secret anymore!