heyfletch
8/29/2013 - 7:55 PM

Highlight another element when clicking a certain hyperlink or element

Highlight another element when clicking a certain hyperlink or element

<a class="highlight" href="#myIDorClass">AnchorText</a>
<script>
jQuery(".highlight").on("click", function(){ 
    jQuery("#myIDorClass").css({'background':'yellow'});
});
</script>