I am using jQuery $.load() function to get content from server. the loaded content contain this:
<p id="p1">123</p>
<script>
$(document).ready(function(){
$('#p1').html('ABC');
alert($('#p1').html());
});
</script>
changing text of paragraph to 'ABC' not affected to page but alert() display 'ABC'.