<input type="radio" value="G;-;P063P081719;-;84.063" name="awardDetail"/>
<input type="radio" value="G;-;P063P091719;-;84.063" name="awardDetail"/>
<input type="radio" value="G;-;P063Q081719;-;84.063" name="awardDetail"/>
I am not selecting a default checket attribute checked="checked"
. When I am selecting a radio button, I am making an Ajax call based.
$('input[name=awardDetail]:radio').click(function(){
var awardinfo = $('input[name=awardDetail]:checked').val();
and sending this awardinfo to the Ajax function and the returned data from server to display in the DIV.
However, my radio button is checked to previous radio button rather than the current selected radio button.
How do I set the checked attribute for this radio button passing the selected index dynamically.
The radio button values group is dynamically generated from backend.