Try this: Remove the href params, instead change the loadContent param to an id or class, like this: <li><a id=1 href=#></a></li> then change your javascript to: $(function(){ $('li a').click(function(){ id=$(this).attr('id'); $("#content").load("pages.php?o="+id+""); return false; }); });
2009/6/3 nanook72 <tim.wo...@gmail.com> > > bump > > On Jun 3, 6:49 am, nanook72 <tim.wo...@gmail.com> wrote: > > Hi all, > > > > I need help with manipulating two div's, one holds the main content > > and the other holds the images matching that content. Right now I > > have the menu changing the content of the main div just fine, however > > I do not know how to change the images in the second div at the same > > time based on the users selection from the menu. Below is the code > > I'm using to change the main div content. Thanks in advance! > > > > Tim > > > > <script type="text/javascript"> > > function loadContent(id) { > > $("#content").load("pages.php?o="+id+""); > > } > > </script> > > > > <body onLoad="loadContent(1);"> > > > > <li><a class="fadeThis" > href="javascript:loadContent > > (1);">Home</a></li> > > <li><a class="fadeThis" > href="javascript:loadContent > > (2);">AboutUS</a></li> > -- Gustavo Salome Silva