jquery - Creating image caption from alt script -


I'm trying to use this jQuery script to create an image caption with alt tag:

  $ ("#img IMG"). Each (function () {var $ this = $ (this); var title = $ this.attr ("alt"); $ this.after ('& lt; div class = "caption" & gt;' + title + '& Lt; / div & gt;';););  

I am using another jQuery script before and it is working fine. I can not seem to get the title for the Alt script to work.

Example: www.cslack.com/test.html

Thanks,

Robert


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -