File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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

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

I agree. Here's the link:
subject: Dynamically create checkbox and label
It's not a secret anymore!