html - jQuery fadeout won't work with links? -
<a target="_blank" href="http://bc.vc/gq4qse"> <img class="bcvc_ad1" src="http://bdeas.com/wp-content/uploads/2015/08/ad1.jpg" alt="ad1" width="80" height="80" /> </a> <script> $( ".bcvc_ad1" ).click(function() { $( ".bcvc_ad1" ).fadeout( "slow", function() { // animation complete. }); }); </script>
seems not fadeaway when clicked. problem?
you have specify image id, not class name. that's error. fadeout works ids can see in following link
for more information, here.
Comments
Post a Comment