<html ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
</head>
<body ng-controller="MyCtrl">
<form action="/example/html5/demo_form.asp" method="get">
<p>Please fill out the form. Thanks.</p>
Gender<br>
<input name="Q1" type="radio" value=0 ng-model="Q1" required="required">Male
<input name="Q1" type="radio" value=1 ng-model="Q1" required="required">Female<br><br>
Where do you live?<br>
<input name="Q2" type="radio" value=0 ng-model="Q2" required="required">Taipei city
<input name="Q2" type="radio" value=1 ng-model="Q2" required="required">New Taipei city
<input name="Q2" type="radio" value=2 ng-model="Q2" required="required">None of the above<br><br>
Age<br>
<input type="number" min="1" max="99" ng-model="Q3" required="required"><br><br>
Height (cm)<br>
<input type="number" min="1" max="200" ng-model="Q4" required="required"><br><br>
Weight (kg)<br>
<input type="number" min="1" max="99" ng-model="Q5" required="required"><br><br>
Relationship Status<br>
<input name="Q6" type="radio" value=0 ng-model="Q6" required="required">Single
<input name="Q6" type="radio" value=1 ng-model="Q6" required="required">In a relationship
<input name="Q6" type="radio" value=2 ng-model="Q6" required="required">Married<br><br>
Working Status<br>
<input name="Q7" type="radio" value=0 ng-model="Q7" required="required">On a job
<input name="Q7" type="radio" value=1 ng-model="Q7" required="required">Student
<input name="Q7" type="radio" value=2 ng-model="Q7" required="required">Between jobs<br><br>
<input type="submit" value="Submit" ng-click="submit()" ng-disabled="Q3<0 || Q4<0 || Q5<0">
</form>
<script>
function MyCtrl($scope){
$scope.submit = function () {
if($scope.Q1==1 && $scope.Q2<2 && $scope.Q3<=35 && $scope.Q4<=165 && $scope.Q5<=60 && $scope.Q6==0 && $scope.Q7<2){
alert('Please contact me. Thanks.');
} else if ($scope.Q1 != undefined && $scope.Q2 != undefined && $scope.Q3 != undefined && $scope.Q4 != undefined && $scope.Q5 != undefined && $scope.Q6 != undefined && $scope.Q7 != undefined) {
alert('Thanks for your time.');
};
};
}
</script>
</body>
</html>