有些事情不行,有什么工作?
var tgtCol = $('td[aria-describedby=tblGrid_Subject]'); var tgtHdr = $('#tblGrid_Subject'); $(tgtHdr,tgtCol).attr('colSpan','3');
解决方法
var tgtCol = $('td[aria-describedby=tblGrid_Subject]'); var tgtHdr = $('#tblGrid_Subject'); $(tgtHdr).add(tgtCol).attr('colSpan','3');
这也将起作用:
var stuff = $('td[aria-describedby=tblGrid_Subject],#tblGrid_Subject'); stuff.attr('colSpan','3');