[jQuery] Put event click on a Radio group

2009-01-21 Thread Twi
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 : Drupal Blog Foro $("input:radio[name=idtypecontent]").click(function(){ var plop = $('in

[jQuery] Put event click on a Radio group

2009-01-21 Thread Twi
Hi! I have to put a click event on some radio with the same name... 1 2 3 And here my javascript: $("input[name=idtypecontent]").click(function(){ //test alert($("input[name=idtypecontent]:checked").val()); }); But i got only a working event on the first radio button. Is my