mike@spb
August 19th, 2002, 03:59 PM
How do you add a "<td>" to the current document. I have a function (OnChange) and I would like to add a line like this to the current document.
<TD><Input type="text" name="txtBox" >
Thanks for any help.
Mike@spb
ShawnDev
August 19th, 2002, 04:53 PM
I assume you're using Javascript:
document.write("<td><Input type='text' name='txtBox' ></td>");
If you want to automatically insert a newline, then use document.writeln:
document.writeln("<td><Input type='text' name='txtBox' ></td>");
The text you specify will be appended to the end of the document, so be sure your closing </body> and </html> tags are in the appropriate place when all is said and done.