I have to create multiple checkboxes and display them in html at a specific place in the page.
I have created a div
<div id="htmlDiv">
</div>
and then created checkboxes in javascript (Ihave to create them dynamically),
function createNewCheckboxt(name, id){
var checkbox = document.createElement('input');
checkbox.type= 'checkbox';
checkbox.name = name;
checkbox.id = id;
return checkbox;
}
but how can I place these checkboxes in DIV i.e. at specific place in html page ?
Thanks
Aiden
Aucun commentaire:
Enregistrer un commentaire