Form with novalidate

Description

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><!--  w w w . j a  v  a 2  s. c o  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>

Click to view the demo





















Home »
  AngularJS »
    AngularJS Example »




Controller
Directives
Expression
Filter
Form
Inject
Scope
Server
Style
Template
Utilities