"JQuery Eazyui" form controls

Source: Internet
Author: User

To begin the use of the Eazyui interface control, there are several forms controls ():

I. Use of text boxes (textbox):

<Divclass= "Easyui-panel"title= "Form Control"style= "width:100%; max-width:400px; padding:30px 60px;">    <formAction= "Demo1.ashx"ID= "FF">        <Divstyle= "margin-bottom:5px">            <!--Keep Spacing -            <inputclass= "Easyui-textbox"ID= "Name"value=""style= "width:100%"data-options= "Label: ' Name: ', required:true" />        </Div>        <Divstyle= "margin-bottom:5px">            <inputclass= "Easyui-textbox"name= "Email"style= "width:100%"data-options= "Label: ' Email: ', required:true,validtype: ' Email '" />        </Div>        <Divstyle= "margin-bottom:5px">            <inputclass= "Easyui-textbox"name= "Subject"style= "width:100%"data-options= "Label: ' Text: ', required:true" />        </Div>        <Divstyle= "margin-bottom:5px">            <inputclass= "Easyui-textbox"name= "message"style= "width:100%; height:60px"data-options= "Label: ' Message: ', multiline:true" />        </Div>        <Divstyle= "margin-bottom:5px">            <Selectclass= "Easyui-combobox"name= "Language"label= "Language"style= "width:100%">                <optionvalue= "th">C</option>                <optionvalue= "TR">C#</option>                <optionvalue= "UK">Java</option>                <optionvalue= "VI">Jquery</option>            </Select>        </Div>        <Divstyle= "Text-align:center; padding:5px 0">            <ahref= "javascript:void (0)"class= "Easyui-linkbutton"onclick= "SubmitForm ()"style= "width:80px">Submit</a>            <ahref= "javascript:void (0)"class= "Easyui-linkbutton"onclick= "ClearForm ()"style= "width:80px">Reset</a>        </Div>    </form></Div><Script>    functionSubmitForm () {$ ('#ff'). Form ('Submit'); }    functionClearForm () {$ ('#ff'). Form ('Clear'); }</Script>
Source Analysis

Invocation Example:

$ ("#name"). TextBox (' GetValue '); //Get Name text box
$ ("#name"). TextBox (' SetValue ', ' Blizzard '); //Assign a value to the Name text box

Get the following list values:

$ (' #language '). ComboBox (' GetText ') //Get the displayed text box value

$ (' #language '). ComboBox (' GetValue ') //Get the selected value

Two. Relevant parameter description:

In the textbox of the HTML tag:

Required:true //indicates non-null validation of text

Validtype: ' Email ' //email format Verification

Multiline:true //multi-line text

"JQuery Eazyui" form controls

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.