Dojo learning notes (13): dojo form controls -- textbox and its variants

Source: Internet
Author: User

Dijit/form/textbox: A basic text box

Dijit/form/simpletextarea: A large number of text input, a basic textarea

Dijit/form/textarea: One extended dijit/form/simpletextarea dynamically increases or reduces its height

Dijit/form/numbertextboxOrDijit/form/numberspinner: The input is a number. Make sure to enter a text box. dijit/form/numberspinner provides a button to extend dijit/form/numbertextbox to gradually change the value.

Dijit/form/datetextbox: The input is a date, a text box, including a pop-up calendar

Dijit/form/timetextbox: The input is time, a text box, including a pop-up time Selector

Dijit/form/currencytextbox: The input is a currency, and an extended dijit/form/numbertextbox localized currency

Dijit/form/validationtextbox: A Basic verification capability that can be further customized

If you want to use dijit/form/datetextbox or dijit/form/timetextbox, You need to introduce CSS with themes and set the CSS style of the Body element.

-- Statement method:

<!DOCTYPE html>

Result:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4D/84/wKiom1RSXG2TsHeyAACiYxAEI2Q870.jpg "Title =" 1.jpg "alt =" wkiom1rsxg2tsheyaaciyxaei2q870.jpg "/>

-- Programming Method

<!DOCTYPE html>

Result:

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4D/84/wKioL1RSXWPwpyqlAACGmVPtBtk042.jpg "Title =" 2.jpg "alt =" wkiol1rsxwpwpyqlaacgmvptbtk042.jpg "/>

Note: The difference between the placeholder and the value attribute is that the text disappears when the placeholder enters the focus point in the input box, but the value does not.

-- Use the Set () method and get () method:

<!DOCTYPE html>

















Http://www.myexception.cn/web/423404.html

This article is from the "IT technology learning and communication" blog!

Dojo learning notes (13): dojo form controls -- textbox and its variants

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.