Hi Twi, Check out http://betweenbrain.com/sandbox/radio-test.html. I'm getting an event on all three. The only thing I did was to add "$ (document).ready(function(){ "
Let me know if that does it. Matt On Jan 21, 10:43 am, Twi <twiste...@gmail.com> wrote: > Hi, > > I trying to put the click event on some radio button... but it works > only on ths first one. > If someone can help me with it'll be great... getting crazy since this > morning :( > > Here my code : > > <input type="radio" name="idtypecontent" value="1" /> Drupal > <input type="radio" name="idtypecontent" value="2" /> Blog > <input type="radio" name="idtypecontent" value="3" /> Foro > > $("input:radio[name=idtypecontent]").click(function(){ > var plop = $('input:radio[name=idtypecontent]:checked').val(); > alert(plop); > > }); > > Why I'm getting only a working event on my first element? something > wrong? > I read that I should put the attribute ":radio"... but even with or > without... same result. > Thanks for helping.