I want to create label and check box dynamically. when i enter text in text box and give submit button,a check box and label with the text i entered in text box should be created..How to create ?
For the label try this:
var newlabel = document.createElement("Label"); newlabel.setAttribute("for",id_from_input); newlabel.innerHTML = "Here goes the text"; parentDiv.appendChild(newlabel);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With