Apr 10, 2008 #1 dougalim Programmer Mar 1, 2007 23 US If Code: cell = row.insertRow(-1) creates a new <td> element in a table row, is there an equivalent to create a <th> element?
If Code: cell = row.insertRow(-1) creates a new <td> element in a table row, is there an equivalent to create a <th> element?
Apr 10, 2008 #2 BillyRayPreachersSon Programmer Dec 8, 2003 17,047 GB I think you'll have to use "document.createElement('th')" and "appendChild" to do the job. Hope this helps, Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt] Upvote 0 Downvote
I think you'll have to use "document.createElement('th')" and "appendChild" to do the job. Hope this helps, Dan Coedit Limited - Delivering standards compliant, accessible web solutions [tt]Dan's Page [blue]@[/blue] Code Couch http://www.codecouch.com/dan/[/tt]