I have a simple $.ajax
call that returns a response that looks like this:
<div id='type'>success</div>
<div id="graph"></div>
<script type='text/javascript'>
//some script that manipulates the graph div
</script>
and on my .ajax's success(response) function, I have:
$(response).find('#type').text()
my problem is that it always returns null if I use .html()
and 'an empty string' when i use .text();
Is there something wrong with my syntax?