O
oeyvind toft
How do I create a checkbox element ? Or any other input type ?
document.createElement('checkbox') doesnt seem to work.
Oeyvind
document.createElement('checkbox') doesnt seem to work.
Oeyvind
oeyvind said:How do I create a checkbox element ? Or any other input type ?
document.createElement('checkbox') doesnt seem to work.
Some browsers have a problem assiging names to dynamically created input
elements in this way. You should define the name like so:
var checkbox = document.createElement('<input name="chName">');
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.