Neither of the alert box works for following code –
var genvalue=('input[#gender]:checked').val());
alert (genvalue);
var value = $("#edu_det1").val();
alert (value);
But when genvalue, the whole portion of code is remove it work. Don’t know what the problem
If you are trying to get an element with an ID, just target that ID as it should be unique :
Otherwise you can also do :
But that sort of defeats the point of having an ID !