AngularJS Tutorial - Form with novalidate








The following code shows how to mark a form with novalidate.

Example


<!DOCTYPE html>
<html  ng-app>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script>
</head><!--from   ww w  .j a v a 2s .co m-->
<body ng-init="x=4; y=4">

  <form name="novalidateForm" novalidate>
    <input type="number" ng-model="x" name="x" step="5">
    <input type="submit">
  </form>

</body>
</html>

The code above is rendered as follows: