I am writing such a thing .
I would like to highlight the column with the product, well, somehow add a frame so that the element stands out from the general table, there is no highlighting or shadow, in the example there is no, but I tried to fasten the selection in this way, added to css
.pricing-hover { background-color: #606060; } In html I added id to make it easier to find the table inside by changing:
<div class="membership-pricing-table"> on
<div id="wedding-prices" class="membership-pricing-table"> js wrote this:
$(document).ready(function() { var table = $('#wedding-prices table'); table.delegate('td','mouseover mouseleave', function(e) { if (e.type == 'mouseover') { var el = $(this); pos = el.index(); el.parent().find("th, td").addClass("pricing-hover"); table.filter(":nth-child(" + (pos+1) + ")").addClass("pricing-hover"); } else { table.find("th, td").removeClass("pricing-hover"); } }); }); Not sure if it will highlight the entire column directly, but at least it adds hover some td class. But the selection color does not change, it turns out that the external class from css .membership-pricing-table table td {...} for some reason redefines the background color, although in the css it is registered earlier than the pricing-hover .
Can an individual td not set the background right in them? Where did the underwater rock disappear? Is there any solution to allocating a column with cells?