Apr 10, 2008 #1 dougalim Programmer Joined Mar 1, 2007 Messages 23 Location 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 Joined Dec 8, 2003 Messages 17,047 Location 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]