Or operator does not work. could you help how to get it right.
$('.iconWrapper span').click(function(e) {
$('#div1').find('img').attr('src', function(index, src) {
if( src =='../../photo/roz1.jpg' || '../../photo/roz2.jpg'){
alert ('ohra');
}else{
alert ('lil');
}
});
1 Answer