[jQuery] Re: gettng value from radio buttons

2009-02-18 Thread GrootBaas
Thanks everybody ... This thread helped me as well. I LOVE OPEN SOURCE !

[jQuery] Re: gettng value from radio buttons

2009-02-12 Thread James
function updateoptns() { var val = $("input[name='optns']:checked"); alert(val); } On Feb 12, 5:22 am, Frederik Ring wrote: > Hi! > > You could do it like this: > > $(document).ready(function(){ >         $('input:radio[name=\'optns\']').click(function() { >                 var optns

[jQuery] Re: gettng value from radio buttons

2009-02-12 Thread Frederik Ring
Hi! You could do it like this: $(document).ready(function(){ $('input:radio[name=\'optns\']').click(function() { var optns = $(this).val(); alert (optns); }); }); You'll have to remove your onclick-s then. On Feb 12, 3:22 pm, "angelochen...@gmail