I have a form with a dropdown that gets validated, the validation works fine but form won't submit if user selects any option other than the default.
I created a jsfiddle of the current code in an easier to read format.
Why isn't my form submitting?
JavaScript
$('#btncheck').click(function () {
if ($("#mySelect ")[0].selectedIndex <= 0) {
alert("Please select a tank from the menu!");
return false;
} else {
return true;
form.submit();
}
});