Something like
$('#button_1').click(function () {
if (!$("input:radio[name=1_gender]").is(":checked")) {
$("label#1_gender_error").show();
$("input#1_gender").focus();
console.log("not checked")
return false;
} else {
if ('input:radio[name=1_gender]:checked') $('#gender_div').hide();
$('#other_div').show();
console.log("checked")
}
});
Will work for you
You're validating a string in your if statement
if ('input:radio[name=1_gender].not(:checked')
And it will always result to true