$('#addmore').click(function() {
var row = $('.crossref:last').clone();
$('.crossref:last').after(row);
});
Above code is used to clone some HTML & paste the cloned HTML right after the last cloned row. I have a lot of addmore buttons with the same functionality. I'm really concerned with this code snippet.
I'm wondering is there a way to optimize this code?