I'd like to attach an onclick function to the links that are in a specific
div. The id of the div is "menu". I tried variations on this:

$(document).ready(function(){
         $("#menu").("a").click(function(){
           alert("Thanks for visiting!");
         });
 });

...but I was just guessing, and I didn't find the correct way yet. 

What is the correct way to do this? Thanks very much in advance to all for
any info.
-- 
View this message in context: 
http://www.nabble.com/Newbie-Question%3A-Specifying-the-links-that-are-in-a-particular-Div--tf4713851s27240.html#a13474559
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to