[thelist] innerHTML and DOM [solved]

Peter-Paul Koch gassinaumasis at hotmail.com
Mon Sep 16 13:50:01 CDT 2002


> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Tom Dell'Aringa
> >
> > ahh..if I had only tried this first. For those
> > interested:
> >
> > cell.innerHTML = "<input type=\"checkbox\" id=\"box1\"
> > /><label for=\"box1\">checkbox</label>";
> > row.appendChild(cell)
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
>or, you could have simply created a checkbox and label elements and
>appended them to the cell which you then appended to the row (not tested).
>
>checkbox = document.createElement('INPUT');
>checkbox.type = 'checkbox';

Caution: this does not work in IE5Mac. When you create an INPUT in IE5Mac,
it's always a text field.

ppk

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx




More information about the thelist mailing list