Error submitting form form in HTML

Source: Internet
Author: User

1, the browser console output error message:

A invalid form control with Name= ' content ' was not focusable.

2. Cause of Error

The TextArea input box in the form form does not have input data. The TextArea input box is as follows:

<name= "Content"  cols= "All"  rows= "Ten"  Class= "Kind-content"  required= ""  ID= "Id_content"  Style= "Display:none;" ></ textarea >

3. Solution

3.1, Method one

Remove the "required" from the textarea and do not judge the input box when submitting the form.

3.2. Method Two

Add "Novalidate" to the form form, and the form data (input) is not validated when the form is submitted. The specific code is as follows:

 <action= "/backend/add_article/"  method= "POST"  enctype  = "Multipart/form-data"  novalidate>

Error submitting form form in HTML

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.