Reputation: 79488
What is the best/optimal way to change the html of a lightbox?
Say I have 20 table rows, and I want to pop them up in a fancybox. The choices are:
$("#popup .title").text(model.title);
)$("#popup").html($(".details", row).clone())
.The added HTML is what you'd find in a profile (links, description, logo, address, etc.), so it's not a ton but not a single line either.
Are there any standards here on what's the fastest in terms of javascript?
Upvotes: 2
Views: 638