$("#myrows li a").click(function() { var target = $(this).attr("href"); $("#ajax_target_id").load(target); } );