¡@

Home 

2014/10/16 ¤W¤È 12:09:25

jquery Programming Glossary: this.colspan

Finding a colSpan Header for one of the cells or td's is Spans

http://stackoverflow.com/questions/10322299/finding-a-colspan-header-for-one-of-the-cells-or-tds-is-spans

that hold the header location see below var thLocator colCount 1 table.find 'tr first th' .each function for var i 0 i this.colSpan i thLocator.push colCount colCount table.find 'td' .click function alert thLocator this .index And then anytime You can.. 'Table Header Count ' table.find 'tr first th' .length var thCount 0 table.find 'tr first th' .each function thCount this.colSpan alert 'Computed TH Count ' thCount alert 'Table TD Col Count ' table.find 'tr eq 1 td' .length share improve this answer..

Large dynamically sized html table with a fixed scroll row and fixed scroll column

http://stackoverflow.com/questions/10838700/large-dynamically-sized-html-table-with-a-fixed-scroll-row-and-fixed-scroll-colu

fixed for both scrolls var tr1c1 origTableTmpl row1.each function var tdct 0 this .find 'td' .filter function tdct this.colSpan return tdct r1c1ColSpan .remove row1.appendTo tr1c1 tr1c1.wrap ' div class fixedTB ' tr1c1.parent .prependTo this.closest.. c1.find 'tr' .slice 0 o.fRows .remove c1.find 'tr' .each function idx var c 0 this .find 'td' .filter function c this.colSpan return c r1c1ColSpan .remove var prependRow row1.first .clone prependRow.find 'td' .empty c1.prepend prependRow .wrap.. this.find 'tr' .slice 0 o.fRows .clone row1.each function var tds this .find 'td' tdct 0 tds.filter function tdct this.colSpan return tdct r1c1ColSpan .remove row1.appendTo r1 r1.wrap ' div class topSBWrapper ' r1.parent .wrap ' div class rightContainer..