Well, it depends. When you say that the content is generated dynamically, are you saying that it's generated by a server side language like ColdFusion or PHP? Or is it being generated by Javascript? If it's created by javascript, after the page is loaded, then you'll need to reassign the click handler to ANY new element on the page.
-----Original Message----- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Massimiliano Marini Sent: Tuesday, June 12, 2007 4:59 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Why I can't access to "a" tag in a div > Your code is saying an A tag that has an id of response. To get a > jQuery object containing all a tags inside that div, it should look > like this: > > #response a I have corrected as you have said, but still not work, this is the correction I have applied: $("#response a").click(function(){ alert("Hello"); return false; )}; It could depend on the content that is generated in dynamic way? -- Massimiliano Marini - http://www.linuxtime.it/massimilianomarini/ "It's easier to invent the future than to predict it." -- Alan Kay