How can I test with Javascript (jQuery) if the browser supports the css general sibling selector ~
?
Example:
#toggled:checked ~ #sidebar {
display: block;
}
That CSS code won't work in IE 8-, Firefox 3-, Safari 3.1-, so in those cases I need to apply a Javascript alternative to display the #sidebar
block.