Listers,


Successfully using the following snippet to add an INPUT tag to a TD, within
a TR, within a TBODY, within a TABLE (etc)!



*cb = document.createElement("INPUT");*

*cb.type = "checkbox";*

* *

*td = document.createElement("TD");*

*td.appendChild(cb);*

*tr.appendChild(td);*

*tbody.appendChild(tr);*



The output looks like ~this~:



*<TR><TD><INPUT type=checkbox></TD></TR>*



Does anyone know how I get my INPUT to close and my checkbox to quote? Eg
...



*<TR><TD><INPUT type=”checkbox” /></TD></TR>*

* *

Will play much nicer with (Ie is imperative to) later attempts to parse as
XML.



Cheers, Samo
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to