title: Overriding default behaviour of anchor tags using jquery
body: <p>I am trying to override the default behaviour of an anchor tag so i can load in a web page on my server into the exisiting div, rather than a new tab or window.</p>
  
  <p>so far i have:</p>
  
  <pre><code>myContainer.click(function(){                   
                      event.preventDefault();
                      $('a').click(function(){
                          var link = $(this).attr('href');
                          myContainer.load(link);
                      });
              });
  </code></pre>
  
  <p>In chrome i have to click the link twice before it does anything, in IE an FF it doesnt work at all and refreshes the page with the new link.</p>
  
  <p>Any help is much appreciated.</p>