jquery - FadeIn fadeOut images with a wrapper div -


jsfiddle

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.

jsfiddle

i can't same functionality work wrapper div applied.

try using $('.wrapper div').click(function () {

demo here


Comments

Popular posts from this blog

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -