HTML form Submit handles a small detail of select Autocommit __html

Source: Internet
Author: User
Tags html form html form submit

For example, the code in the form below:

<select Name=ym onchange= "submit ();" >
<option value=200705 selected>200705</option>
<option value=200704>200704</option>
<option value=200703>200703</option>
<option value=200702>200702</option>
<option value=200701>200701</option>
</select>

Normally when you change the month like 200704, the form is automatically submitted
Submit (); is reduced can write table Single-name. Submit or document. Table Single-name.

One small detail is that if a Form object's name is used, it's not going to work.
If you're using a code generator, be sure to pay attention to the name of the submit. Don't use it as a Form object name
Even type=submit name should be written like Notsubmit
<input type=submit name=notsubmit value= query >

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.