Jump to content

The "required" attribute for the search field


Recommended Posts

Hi. I suggest to add required="true" attribute to the search field to prevent the form from being sent without the search phrase.

<input type="search" id="elSearchField" required="true" placeholder="Search..." name="q" autocomplete="off" aria-label="Search">
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...