[jQuery] Re: Associate an event handler to an element out of $(document).ready

2007-08-07 Thread David Garcia Ortega
Hey, Thanks a lot for your answers. Joel Birch, I think you are right and it will work properly, I can not test it know because I am at work! Chango, thanks for your answer but I think that it does't solve my problem. [Spanish]: Por cierto, soy español, tú? Yesterday night I also foun

[jQuery] Re: Associate an event handler to an element out of $(document).ready

2007-08-07 Thread Chango
Hola David, como va? Mira, aca le digo que CUANDO se haga click en un link con atributo REL=bus, dentro del DIV body, se ejecute la funcion $('#body').find('[EMAIL PROTECTED]').bind("click", function (){alert('se hizo click sobre link REL=bus');}); En tu caso es: $(document).ready(function()

[jQuery] Re: Associate an event handler to an element out of $(document).ready

2007-08-06 Thread Joel Birch
On 07/08/2007, at 8:12 AM, David Garcia Ortega wrote: Hi JQueriers, I have a question for you. Well, my problem is the following: In .js file and inside $(document).ready, I have the following code: $(document).ready(function() { $('#menu').find('a').eq(0).click( functi