Posted By

pruntrut on 02/05/12


Tagged

jquery


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

spee66


ajax site web


 / Published in: HTML
 

  1. (function($){
  2. $(document).ready(function(){
  3. var containerId = '#container',
  4. $container = $(containerId);
  5. $('a').live('click', function(e){
  6. $container.load($(this).attr('href') + ' ' + containerId);
  7. e.preventDefault();
  8. });
  9. });
  10. })(jQuery);

Report this snippet  

You need to login to post a comment.