This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically create checkbox and label  RSS feed

 
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
Boost this thread!