how do you use a custom function with jquery .live()?
<p>I have a page that has haschhange tabs so when I click on a link the url looks like www.site.com/abc.php#123.php</p>

<p>but because of this my functions don't work.</p>

<p>I have a page specific script that works if i go to www.site.com/123.php. But it won't work when the page is loaded in via ajax by the hashchange plugin.</p>

<p>I was thinking that I needed to use the .live() so that when the page loads it would capture the new content... hmmmm</p>

<p>is there another way of doing this?</p>

<p>I'm trying to run this code on my 123.php page:</p>

<p>$(".tab_content").hide(); //Hide all content
  $("#files_left_pane > ul.tabs li:first").addClass("active").show(); //Activate first tab
  $("#files_right_pane > .tab_content:first").show(); //Show first tab content
  //On Click Event
  $("#files_left_pane > ul.tabs li").click(function() {
   $("#files_left_pane > ul.tabs li").removeClass("active"); //Remove any "active" class
   $(this).addClass("active"); //Add "active" class to selected tab
   $("#files_right_pane > .tab_content").hide(); //Hide all tab content</p>

<p>var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content
   $(activeTab).fadeIn(); //Fade in the active ID content
   return false;
  });</p>

<p>UPDATE:</p>

<p>I have tried to wrap my script in $(selector).live('click', function(){}); but what I'm noticing is that any JS i place in the 123.php won't be excecuted once loaded via hashchange</p>

<p>UPDATE: Nevermind, I had to run the function in the code that initiated the haschange and loaded in content via ajax.</p>

<p>Thanks prodigitalson</p>
