Chapter 2 of JavaScript advanced programming-form scripts-notes

Source: Internet
Author: User

Today, let's share with you the chapter 13 form script.

The header of the form is form. All the sub-altar owners are bound to this sub-account. So if you want to set the value, you have to see how to obtain the form.

Generally, there are three methods to take form:

VaR F = Document. getelementbyid ( ' Formid ' );
VaR F2 = Document. Forms [ ' Formname ' ];
VaR F3 = Document. Forms [ 0 ];

Then, submit the form and reset it.

Form. Submit ();
Form. Reset ();

Then the input element under the form element.
Several attributes of the input element should be noted down and clarified. These attributes are frequently operated in the future.
These attributes are:

Disabled =   True   |   False ;
Radioonly
Form
Value
.

This chapter is relatively simple, probably so much.

Since chapter 13, this book has entered a final stage. That is to say, there will be no other war in the future except for the Ajax one.

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.