Response title
This is preview!
I have a form named lifestyle
I have tried all the options in Chrome and it doesn't seem to work
Option 1 var first_val = $('#lifestyle input:radio[name=Question0]:checked').val(); alert($('#lifestyle input:radio[name=Question0]:checked').val());
Option 2 var first_val = $('form input:radio[name=Question0]:checked').val(); alert($('form input:radio[name=Question0]:checked').val());
Option 3 var first_val = $('#lifestyle input:radio[name=Question0]:checked','#lifestyle').val(); alert($('#lifestyle input:radio[name=Question0]:checked','#lifestyle').val());
And so on..
I don't get the value and the alert says undefined.
Thanks Rajesh
© 2013 jQuery Foundation
Sponsored by and others.