I’m adding a title and description after each photo in an unordered list (li), and using a combination of jQuery/JSON, the flickr API and a lightbox. Everything is working, but I know one piece of my code is wrong:
.add(
$("<p>" + item.title + "</p><p>" + item.description._content + "</p>")
)
Again, it works, but I know it’s wrong. What is the proper way? I’ve tried everything I can think of, but only the code I’ve typed above works. What I really want is this, inserted following each photo:
<p class="title">item.title</p>
<p class="description">item.description._content</p>
I do not understand the question, but try this…
And the method is
.after(), I think.