Validationtextbox of dojo

Source: Internet
Author: User
Powerful text box: dijit. Form. validationtextbox is a powerful text input box. The key is that it can provide some common verification and case conversion functions. The following describes an example and some common attributes:
<HTML>

 

<Head> <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312 "/> <title> validationtextbox </title> <style type =" text/CSS "> @ import ".. /JS/dojo/resources/dojo.css "; @ import ".. /JS/dijit/themes/Tundra/tundra.css ";. dijitinputfieldfocused {border: solid 2px # ffdf00 ;}</style> <SCRIPT type = "text/JavaScript" djconfig = "parseonload: True, isdebug: True" src = ".. /JS/dojo. JS "> </SCRIPT> <SCRIPT> dojo. require ("dijit. form. validationtextbox "); dojo. require ("dijit. form. numbertextbox "); </SCRIPT>
  Validationtextbox Some common methods:Setvalue (); // do not use. value or. innerhtml to set the value. You may fail to set or lose the getvalue (); Validate (); manually verify isempty (); whether it is empty isvalid (); whether it meets the validation rules

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.