• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamically create checkbox and label

 
Ravi Kotha
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
look into document.createElement

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic