Sorry, I didnt explain this very well, I've set up what I have in jsfiddle...
http://jsfiddle.net/greggb/Ya2wX/
basically what I'm trying to do is make it so after the first div has been opened, the second tab anchor (two) will close the first div before opening the next div?
Thanks, Gregg.
$(document).ready(function() {
$('.example2').hide().before('');
$('a#toggle-example2').click(function() {
$('.example2').slideToggle(500);
return false;
});
});
$(document).ready(function() {
$('.item1').hide().before('');
$('a#toggle-item1').click(function() {
$('.item1').slideToggle(500);
return false;
});
});
before('')do ???