[Javascript] just Checking Checkboxes

Bill Marriott bill.marriott at optusnet.com.au
Thu Oct 11 16:10:41 CDT 2001


Hi Everyone,

Today's problem for me is:

How in Javascript can I 'Check' a checkbox box when I add it as an element
in code?
The code below will add it to the new row but I want to check it as well and
if possible make it invisible

Bill.


var addObj = document.createElement("INPUT");  ////// a add check box
addObj.type = "checkbox";
addObj.name = "ADDLINK";
addObj.id = "A1";
var addObjParent = newRowObj.lastChild.previousSibling;
addObjParent.appendChild(addObj);






More information about the Javascript mailing list