I have a javascript validation on click of command button(onclick="return validationFunc();"). When the validation is failing the backend action is not getting called(which is expected),however the action does not get called when the validation is passing.
<apex:commandbutton onclick="return validationFunc();" action="{!backendAction}"/>
function validationFunc(){
//when validation fails
return false;
//when validation passes
return true;
}