Reputation: 58662
Here is my layout :
View All Students
.src
attribute.$('img #bot-image-path ').slideDown(1000);
, but that doesn't seem to take any effect.How would I achieve something like that in jQuery ?
Here is my live Result : Fiddle
Upvotes: 0
Views: 78
Reputation: 2512
I tried using $('img #bot-image-path ').slideDown(1000);, but that doesn't seem to take any effect.
$('img #bot-image-path ')
Will select a div with id #bot-image-path
inside of any image in your window, which would be invalid html. You likely just mean $('#bot-image-path')
Instead of sliding...You can do a fade of 2 images asynchronously, with a simple example (Click the cats):
Upvotes: 0
Reputation: 317
Maybe using something like the following?
[selector].show( speed, [callback] );
This will fade in the image over 'speed' ms. Callback isnt necessary. You can read more about it here, http://www.tutorialspoint.com/jquery/jquery-effects.htm.
Edit: Also, removing the 'img' in front of the actual div id might help!
Upvotes: 1