Can I do the following to concatenate two variables into one? Or there is a better way to do it?
$('.row-add').live("click", function () { var newContent = $("<span>Example data</span>"+""); var newContent2 = $("<span>New Project</span>"); var content = newContent+newContent2; $(this).closest("td").append(content); });
content = newContent.add(newContent2);