Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("img[title]").each(function(){
- this.after("<h2>" . this.attr(title) "</h2>");
- });
- $(this).after("<h2>" + $(this).attr('title') + "</h2>");
- .attr("which one", "what to put there")
- $("img").after("<h2>" + $(this).attr("title", "your new title") + "</h2>");
- $("img[title]").after("<h2>" + $(this).attr("title") + "</h2>");
- $("img[title]").each(function() {
- $(this).after("<h2>" + $(this).attr("title") + "</h2>");
- });
Add Comment
Please, Sign In to add comment