I want to determine that whether any html table on the webpage has the tags present or not. If it not present , I want to insert the colgroup tag in the html. I have got the table object in the javascript but I dont find any way to solve this problem. Please help !!!
Share
See http://jsfiddle.net/jv5yQ/
Just use
.getElementsByTagName('colgroup'):HTML:
JavaScript: