Restrict input type on input elements.