Hi Guys,
I am trying to load 2 scripts in jquery only once a #element is clicked. Currently, I am trying to use:
jQuery("#element").click(function () {
jQuery('#elementcontainer').load('/js/jquery.script.js');
jQuery('#elementcontainer').load('/js/jquery.script2.js');
});
The problem is that the scripts load everytime the #element is clicked. I only want the scripts to load once - and currently they also make like this
"http://127.0.0.1/pck/Js/jquery.script.js?_=1279101767931"
How can I load the scripts ONLY once and stop the non-cache. I am using ASP.NET MVC ?
Thx