Jquery .load ajax

Jquery .load ajax

Hi there,

Apologies if this has been dealt with before - I couldn't quite find what I was looking for when searching the forum.

I am new with jQuery, and wondered if anyone could help.

I successfully loaded a list of links (e.g. <a href="info2.php">More info</a> into the #submenu div using the first part of the code below, and want these links, when clicked, to load their URL into the #content div.

I'm sure I'm missing something glaringly obvious, so any help would be really appreciated.

Thanks in advance!

Rich


$(function(){

   $('#submenu').load('submenu.php');
   $('#content').load('info.php');
   $('#submenu a').click(function() {

      $('#content').load(href);
         
   });
         
});