Is the submit button only a button or an input tag?

Source: Internet
Author: User
Because of style issues, I want to set a label a to the submit button and set it to the submit type, but I found that the submission failed and tried several times only the button label or the input label can be used. if the submission is successful, can only the two buttons be submitted? Is there any other way ?... Because of style issues, I want to set a label a to the submit button and set it to the submit type, but I found that the submission failed and tried several times only the button label or the input label can be used. if the submission is successful, can only the two buttons be submitted? Is there any other way?

I'm talking about php, not js, not click events, but data submitted.

Reply content:

Because of style issues, I want to set a label a to the submit button and set it to the submit type, but I found that the submission failed and tried several times only the button label or the input label can be used. if the submission is successful, can only the two buttons be submitted? Is there any other way?

I'm talking about php, not js, not click events, but data submitted.

click me!

Javascript. The form object has the submit method.

You can use other tags to simulate the submit button, for example, the tag you mentioned here.

If it is simulated by other tags, you need to handle events by yourself, such as click events and submit events.

Click events can be properly simulated. submit events can be triggered in a hidden input type = "submit" mode.

If Javascript is not used, only the input type = submit and button type = submit methods are available,
If Javascript is used, no matter what elements

Implemented in JavaScript, p can be submitted.

The submission is for form. As for how to trigger this submission, it depends on JS.

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.