1
You could use the .next()
selector method in the click handler on the current clicked button
( $(this)
).
Just change
$('.pop').slideFadeToggle();
to
$(this).next().slideFadeToggle();
Source:stackexchange.com
1
You could use the .next()
selector method in the click handler on the current clicked button
( $(this)
).
Just change
$('.pop').slideFadeToggle();
to
$(this).next().slideFadeToggle();