I’m trying to get what’s inside a <div> with ID of display using
$("#display").after(html);
var testxd = $("#display").text();
window.location.replace("test.php?v="+testxd);
and all I get is a BLANK. I Help?
Here is div display:
<div id="display" style="display: none;"></div>
I know the ID is in the because the ID shows up during after(html);
There is no text inside the
<div id="display"></div>so blank is the result.If you had
then you would get “foo” from $(“#display”).text();