html - Pure css selector for next visible siblings -
i have multiple td
in tr
. of tds visible , of hidden. want remove border first visible td
. know using jquery can achieved easily. need pure css selector solution this. used adjacent(+) sibling , siblings (~), nothing helped me. please suggest possible solution. eg. need style first visible element after element class='test'
jquery: (jsfiddle)
$(document).ready(function(){ $('td:hidden:first').next().css( "background-color", "green" ); });
:hidden
jquery extension hidden columns. :first
first hidden element. next()
gets following sibling of each element in set of matched elements.
Comments
Post a Comment