I am having some trouble with Jquery append feature. I am wanting to have a DIV around a PHP while loop, so I did this code and the opening div tag is called, but the closing div tag isn’t registering with its opening tag:
$('.class').append('<div class=\"class_name\">');
\\ While Loop
$('.class').append('</div>');
jQuery only appends complete elements, you can’t append an opening div tag without jQuery automatically closing it. Try building an html string and then appending that string.
UPDATE
assuming you did a php while loop and generated a variable called $strOutput:
add it to your javascript like this:
another update
Read between the lines! That was just an example… Build a single string, then echo it.