This is my HTML
<tr>
<td class="g">
Gender
</td>
<td class="g_input">
<input type="radio" name="gender" id="settings_gender" value="Male" checked /> Male
<input type="radio" name="gender" id="settings_gender" value ="Female" /> Female
</td>
</tr>
This is the javascript
$(document).ready(function () {
$(".update-basic-info").click(function () {
var gender = $("#settings_gender").val();
alert(gender);
});
});
The output is only showing Male, when i check the female radio button, it still shows male