I have a number of info panels sharing the same class which I wish to show/hide using the slideToggle function. The content of the panel is pulled in dynamically through json. so Ibelevide I must use the 'live' and not 'bind' function? The following code will toggle all the panels simultaneously. I wish only one panel to toggle at a time.
$('a.sc-info-toggle').live('click', function() {
$('.sc-info').slideToggle();
return false;
});
Many thanks