H5 new input form, Form Properties

  New form

  • email, Email type 
  • url, Url type
  • date, date type
  • time, time type
  • month, type month
  • week, week Type
  • number, numeric types
  • tel, phone type
  • search, search box
  • color, generates a color selection form

  Form Properties

  required = required, required, can not be empty

  placeholder, prompt text (placeholders)

  autofocus = autofocus, auto-focusing to a specified form

  multiple = multiple, multiple choice paper submitted (used for uploading files)

  autocomplete = off / on, filled out before displaying the value input box, on: open, off: off, by default

  Using this property, you need two essential conditions:

  ①, to be placed in the form of the attribute name attribute while adding 

  ②, successful submission 

Guess you like

Origin www.cnblogs.com/qtbb/p/11454993.html