[Javascript] https://lists.latech.edu/pipermail/javascript/2001-October/002380.html

Stefan Weise stefan.weise at clarity-ag.net
Fri Jun 28 08:24:10 CDT 2002


do you remember your posting below? did you finally find a solution?

document.createElement("<INPUT type=checkbox checked");

... works but it's not very nice ...

have fun

stefan (bonn, germany)

----------------------------------------


[Javascript] just Checking Checkboxes 
Bill Marriott javascript at LaTech.edu 
Fri, 12 Oct 2001 07:10:41 +1000 

Previous message: [Javascript] Jobs available... 
Next message: [Javascript] just Checking Checkboxes 
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 



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);




Previous message: [Javascript] Jobs available... 
Next message: [Javascript] just Checking Checkboxes 
Messages sorted by: [ date ] [ thread ] [ subject 




More information about the Javascript mailing list