[jQuery] avoid inserting twice
[jQuery] avoid inserting twice
Hi,
How do you avoid inserting twice the same element after another?
$('#button').bind('click',
function() {
$('#header').after('<div id="new">tester</div>');
});
--
regards,
takeshin
Topic Participants
admirau
Dave Methvin
josh
cancuen
hello