Validate Max length of TextBox : Validation « Dojo toolkit « JavaScript Tutorial






<html>
  <head>
    <link rel="StyleSheet" type="text/css"
      href="js/dojo/dijit/themes/tundra/tundra.css">
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/",
        parseOnLoad : true
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
      dojo.require("dojo.parser");
      dojo.require("dijit.form.TextBox");
      dojo.require("dijit.form.ValidationTextBox");
      dojo.require("dijit.form.Button");
    </script>
  </head>
  <body class="tundra">
              <label>First Name:</label>
                    <input type="text"
                     maxlength=25
                     name="first"
                     dojoType="dijit.form.TextBox"
                     trim="true"
                     propercase="true"/><br>

</body>
</html>








29.98.Validation
29.98.1.Validate Isbn
29.98.2.Validate Luhn number
29.98.3.Validate Max length of TextBox
29.98.4.Validate credit card number
29.98.5.Validate email
29.98.6.Validate email address
29.98.7.Zipcode validation
29.98.8.Check phone number format
29.98.9.Check number format