Better modern input type detection

added by JavaScript Kicks
3/11/2015 4:10:11 PM

342 Views

Traditionally, modern input types are detected by creating an input with a type of email or number or whatever you want to test, and then querying type. If the modern type you just set is reported, the browser supports that type. Non-supporting browsers return text instead.


0 comments