I want to append some html to an empty non null jQuery object only in the loop but it\'s not working unless I create an object and add an html tag during creation. How can I cre
I couldn't find another way so I started with the . Removing the while keeping the contents didn't work properly and that's why I posted the question. So, instead, I created a new jQuery selection by selecting all the and threw away $new.
var $new = $().add("
");
$.each(.....)
{
$new.append(" ");
$newObject = $('sometagt', $new)
..... do more work using $newObject