javascript - Apply a jQuery script already present in the page only the html called by Ajax, not on all html documents -
i created generalists jquery scripts of html tags:
<script src="./scripts/public/scripts.js"></script>
i html tags called ajax benefit these scripts. added function $.getscript() in code:
$('.ajax-global').on('click', function(){ var param = $(this).attr('id'); $('.ajax-window').load('./ajax/' + param + '.php', function(){ $.getscript("./scripts/public/scripts.js"); }); });
the problem code affects entire page, or wish limited ajax code called...
how proceed?
Comments
Post a Comment