n1313 The correct decision to change the attribute. If you have a question, how do you select the first line of a page that contains a cell with the colspan attribute, you just need to change the selector to something like this:
$("tr:first").find("td[colspan='2']:first").attr('colspan','4');
This is very specific. You may need to play with it to work just the way you need it.
source
share