[jQuery] Re: I need some help with basic thing

2008-02-16 Thread Carlos Antonio da Silva
FrEaKmAn escreveu: > $('a#addsuggest2').click(function() { > alert('working'); > }); > $('a#addsuggest').click(function() { > //alert('working'); > $('#message').html('add'); > }); > Add > > > what is wrong? When I click on second add link (addsuggest2) nothing > happens > >

[jQuery] Re: I need some help with basic thing

2008-02-16 Thread FrEaKmAn
thanks for reply. I was also able to solve the problem with livejquery... On 16 feb., 22:06, Karl Swedberg <[EMAIL PROTECTED]> wrote: > The problem here is that you are bind the "click" handler to > "#addsuggest2" when the document is first loaded, but that element > doesn't get created until you

[jQuery] Re: I need some help with basic thing

2008-02-16 Thread Karl Swedberg
The problem here is that you are bind the "click" handler to "#addsuggest2" when the document is first loaded, but that element doesn't get created until you click on "#addsuggest" Unlike with CSS, which allows you to set styles for non-existent elements that will be automatically applied

[jQuery] Re: I need some help with basic thing

2008-02-16 Thread FrEaKmAn
just as info, I have included all jquery files + jquery code is in $(document).ready(function(){ code here... });