How can I add tag aroud with link to that image with JQuery?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This will wrap a set of images with links to them:
…uses
.each(link),.wrap(link), and the native DOMsrc(link) property for image elements.Edit Or as Pointy points out (but not pointedly), just pass a function into
wrap:Live example