This code allows one to add or delete rows or columns to an HTML table using DOM manipulation. It handles colspan and rowspan cells properly, both when such a cell overlaps the operation area (in which case the rowspan/colspan value of the cell is adjusted instead of other cells being added or removed), and when it doesn't (in which case the rowspan/colspan attribute may cause cells to be in the operation area that would otherwise remain unaffected).
Copyright © 2013 Black Duck Software, Inc. and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a Creative Commons Attribution 3.0 Unported License . Ohloh ® and the Ohloh logo are trademarks of Black Duck Software, Inc. in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.