Looking to enhance my javascript skills by adding CSS to another element when a particular element is hidden. I've got the hiding/showing part down, but now I want to take it a step further.
For example: How can I style div2 differently when div1 is hidden?
Your help is much appreciated!
Oops, forgot to include the code - sorry about that! Here it is:
$(document).ready(function(){
$("#hide").click(function(){
$("#row-offcanvas").hide();
});
$("#show").click(function(){
$("#row-offcanvas").show();
});
var isHidden = $('#row-offcanvas').is(':hidden');
--> Now looking to apply some CSS to #test (another div)
});