fwiw I found your original work just fine (maybe an improvement in core jQ since 2009?) ...
$("#myTable thead th:not(:last)").css("border-right","1px solid white");
The title bar of my table has a dark blue background, so the white frame on the right made the table look snaggletoothed and did not match the black border of 1px data.
gordon
source share