Try it.
var $this = $(this);
var $tr = $this.parent();
var col = $tr.children().index($this);
var bordWidth = $tr.prev().children().eq(col).css("border-bottom-width");
.prev()will get the previous element tr, and then with the help it .children()will get everything tdand get the required td using the method eq().
source
share