code: function getColIdx($tr, $td) {
  		var colspan,
  			td = $td.get(0),
  			idx = 0;
  
  		$tr.children().each(function() {
  			if (this === td) {
  				return false;
  			}
  			colspan = $(this).prop("colspan");
  			idx += colspan ? colspan : 1;
  		});
  		return idx;
  	}
docs: /* Calculate TD column index (considering colspans).