How to <script> inside an Object
I'm trying to have muliple equal objects in the same Dom that are loaded with Ajax Requests, but i want to execute a script for every new Object load and apply this script changes only to my new loaded object.
For example, the content that comes from the Ajax request is:
<div>
<script>
How this script gets the "parent" div which this script is inserted?
</script>
</div>
The problem is that I can't have any selector in this div, because I will have a lot of the same in the Dom, and so the changes would apply to all the objects, and not only to my "parent".
So how can i easily do this in Javascript or with the Jquery help?