I have two elements on a page.
<div id="a">content</div>
<div id="b" style="display:none">different content</div>
When I click the currently displayed div, I want to hide it and show the other one. This is easy to do:
$('#a').hide();
$('#b').show();
But now I want to take it a step further and highlight the element as it is being displayed. I think that it will involve effect("highlight"), but I can't get it to work. How do I achieve this?