As of now I am able to retrive the alt text from an image but I am also trying to retrive the text from a div class to display depending on the image. This is the script I am using to retrive the alt text
var title = $i.attr( 'alt' ); $('#title').text( title );
Now how do I replace the .attr is it .div? I am new to javascript. Any help would be appreciated.