Here is a simple question for a jQuery guru.
A work fiddle you can find HERE
As you can see there is a container with id="hideme". I want when I click on link2 this id to hide, but with condition that when I click on link1 or link3 it must become visible again.
So I thought it must be } ELSE { or it is not possible in jQuery?
$('#link2').click(function(){
if(jQuery('#link2').data('clicked')) {
$('#hideme').hide();
} else {
$('#hideme').show();
};
});