jquery - FadeIn fadeOut images with a wrapper div -
this code works fine without wrapper div
$('div').click(function () {
but when use wrapper div
$('.wrapper').click(function () {
the other 2 images fadein , fadeout when don't want them to. want them "toggle" when set "second" images.
so, black empty circle should fade red circle when blue circle clicked.
this old functionality worked fine.
i can't same functionality work wrapper div applied.
try using $('.wrapper div').click(function () {
demo here
Comments
Post a Comment