tags:

views:

21

answers:

1

how would i loop through all the radio boxes on the page and get the value? have the following command got anything to do with it?

$('input[type=radio]')
+1  A: 

Update:

To loop through checked ones, you can use the :checked filter selector this way:

$(':radio:checked').each(function(){
   alert($(this).val());
});

You can use the each method like this with :radio (shortcut) filter selector:

$(':radio').each(function(){
   alert($(this).val());
});
Sarfraz
Thank you for your help
Gully
@Gully: See my update please.
Sarfraz
@Gully: Welcome...
Sarfraz