I have a script block, in the div element which is appended after html response. I want to access this block and call eval() function for this script. How can I access the script block.
I tried $("#divId script") , but it doesn’t work.
<div id="divId">
<script type="text/javascript">
// some code here
</script>
</div>
If you don’t trust me, click http://jsfiddle.net/VZfMd/