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.