Suppose i have two html files, one.html and two.html. I want to include two.html in one.html, so i have done that like this,
<script>
$(function(){
$("#middle").load("two.html");
});
</script>
I have a script file say, script.js which i am loading at the end of one.html as
<script src="scripts/script.js" ></script>
In that file I am writing function to be implemented on elements of two.html. But the functions are not being applied on two.html. So, what's the correct way of doing this?