Now I have it, I just needed to make them have unique id's and it worked. EX: if bob is the id, linkid = bob and the ulid = bobul)
$(document).ready(function(){ $("a.bob").click(function() { var ID = $(this).attr("id"); $("#"+ID+"ul").load("data.html"); }); }); On 11/23/07, yetanother <[EMAIL PROTECTED]> wrote: > > > I'm using an id tag (based on my database id) in my html to help > direct traffic. On a click I use the following which grabs the > variable from the id tag of the link: > > var myID = $(this).attr("id"); > > I tested that with an alert and it works properly... > > Now then, if there was an unordered list with that same id later on > the page that I want to load the contents of a html file how would I > do it? The following was my guess but I guessed wrong... > > $("ul#"myID).load("data.html"); > > Kindest, > > Wil >