var $selected = $radioBoutons.filter(':checked'); This removes from the $radioBoutons set of all elements that are not checked (which should end up with 0 or 1 item).
On Jul 14, 2:45 am, rejome <jeromeg...@gmail.com> wrote: > Great ! That works perfectly. > > One last question : > How can I use the variable declared before ($radioBoutons) ? > > Thanks a lot. > > On 14 juil, 14:35, Charlie <charlie...@gmail.com> wrote: > > > function fonctionRadioBoutons() { > > alert("Dans la fonction : " + > > $("input:radio[name=radioBoutons]:checked").val()); > > } > > rejome wrote:Hello, Here is my prototype > > :http://rejome.homeip.net:8080/prototype.htmlIdon't understand how I can > > get the radiobutton value in the function... Please help me :-) > >