Loading Jquery Scripts into a single page
Hey guys,
I have two Jquery scripts , I need to load them into a single page
The scripts work fine separately , but when I try to load them into single page, only one of them works
this is my code for loading the two scripts:
- $(document).ready(function(){
- //Load the second page and second page script
- $('#firstContainer').load('secondPage.html');
- $.getScript("js/secondPageScript.js");
- //Load the thirdpage and third page script
- $('#secondContainer').load('ThirdPage.html');
- $.getScript("js/ThirdPage.js");
- });