Hi all
I have a jsfiddle here - http://jsfiddle.net/bmdpamhy/
It’s three btns with content div’s below. The button and content containers have class names.
The content div’s are hidden.
I want to open just the content div below the button clicked.
How do I open just the div below the buton clicked.
/* This will open all content divs
$(function(){
$('.open').click(function(){
$('.content').slideToggle();
});
})
*/
// I want to open just the content below the button clicked
$(function(){
$('.open').click(function(){
$(this).next('.content').slideToggle();
});
})