Hello, I am creating a form with adding radio button for define the "Gender". Set choices Male and Female. Not set any default value.
I will notice that if save the data without set value to Gender and when it is open in edit mode and its automatically assign First Choice (Male) as a result.
this is my code
if(NWF$('#'+rdGender).find('input').val() != '')
var genderValue = NWF$('#'+rdGender).find('input').val();
console.log("Gender not a null value");
I'm having trouble getting correct value with Radio Button. What am I doing wrong?