MyBB Community Forums

Full Version: Need some help with jQuery!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey guys I wanted some help with jQuery because I am pretty new to it. Toungue

So the thing is in the below code I wanted to add the function persist(true) or simply the persist function.
<script type="text/javascript">
jQuery(document).ready(function($){
$('.tab').click(function(){
$('.at').removeClass('at');
$(this).addClass('at');
$('.content').slideUp();
var catshow = $(this).attr('rel');
$('#'+ catshow).slideDown();
});
});
</script>

I tried every possible combination but it ain't seem to be working. Is there any solution to this problem?

Thanks in advance Smile
No there isn't any problem with the functioning of jQuery, I just wanted to add the persist function or simply the session cookie function so that it remembers the last clicked tab even if the page is refreshed!

Smile