-3

I am trying to get the value of the radio button with the following code. can you please any one let me know to get the value of the selected radio button.

<input type="radio" name="abc_181508" value="3" /> Reset                                                    
<input type="radio" name="abc_181509" value="1"  /> Approve
<input type="radio" name="abc_181509" value="0"  /> Reject

name is dynamic which is a listID

Thanks

Rohan Kumar
  • 40,431
  • 11
  • 76
  • 106

1 Answers1

0

To get a single value you must have to use unique name like,

<input type="radio" name="abc" value="3" /> Reset                                                    
<input type="radio" name="abc" value="1"  /> Approve
<input type="radio" name="abc" value="0"  /> Reject

And get value like,

$('[name="abc"]:checked').val();
Rohan Kumar
  • 40,431
  • 11
  • 76
  • 106