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

Reply via email to