Horje

How to add HTML <input> pattern characters [^'\x22]+

An <input> element with type="search" that CANNOT contain the following characters: ' or "

index.html
Example: HTML
<form action="/action_page.php">
  <label for="search">Search:</label>
  <input type="search" id="search" name="search"
  pattern="[^'\x22]+" title="Invalid input">
  <input type="submit">
</form>

Output should be:

How to add HTML <input> pattern characters [^'\x22]+




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin