I've started using jQuery's UI Tabs, and they work great for the most part, but I've had some issues. When I switch back and forth between tabs, the functionality on some items is lost when I return to that tab. That led me to question whether or not I was structuring it all correctly. Google searches turned up nothing so I decided to ask here.
So the question is: if I have pages that I'm pulling in via Tabs + AJAX, and those new pages have features that I want to use jQuery with, where do I place that jQuery? My structure right now is as follows:
Page with tabs: main_page.php There are two tabs on that page: one that pulls in "page1.php" via AJAX, and one that pulls in "page2.php".
page1 has its own elements that I then use jQuery on. Where does that jQuery code go? Does it go on main_page.php, or on page1.php?
Right now I've been putting it on page1, which I think is correct, but that has created other issues, so I just wanted to double check and see if that was correct.