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.