$(".advancedsearchlink a") selects all anchor elements inside an element with class 'advancedsearchlink' - but in your comments you say that 'advancedsearchlink' is a class of a link (anchor?) element - so are you selecting all anchors inside a.advancedsearchlink??
anyway, you can use the callback function in the .load() to ensure the data is loaded first and then assigned your click function. put your second function inside the callback like so: $("#advancedsearchholder").load("load-advancedsearch.html", function() { $(".advancedsearchlink a").click(function () { $("#advsearchbox").slideToggle(); return false; }); }); i haven't tested it, but i do similar things with $.get() a lot. Azadi On Feb 17, 2:57 am, afox <[EMAIL PROTECTED]> wrote: > Hi, I'm having a problem with selectors not affecting things that have > been loaded into the page. Any help or ideas would be gratefully > received. I'm quite new to all this... > > See comments in my code below... > > $(document).ready(function(){ > > // loads HTML with form and now there are two links with the > class of .advancedsearchlink > $("#advancedsearchholder").load("load-advancedsearch.html"); > > // this opens and closes a search area using either of > the .advancedsearchlink links - but only the one outside of the loaded > HTML works > $(".advancedsearchlink a").click(function () { > $("#advsearchbox").slideToggle(); > return false; > }); > > }); > > Thanks!