-
-
Save johanoloflindberg/797d9681827a4f9caadc1668dd265b16 to your computer and use it in GitHub Desktop.
HTML5 Input Types for Touch Keyboards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('<input type="email" id="lead_email_alt" name="lead[email]" required="required" placeholder="E-mail Address" class=" form field text _lead_email ">').insertAfter('input#lead_email'); | |
$('input#lead_email').remove(); | |
$('<input type="tel" id="lead_phone_alt" name="lead[phone]" required="required" placeholder="Phone Number" class=" form field text phone _lead_phone ">').insertAfter('input#lead_phone'); | |
$('input#lead_phone').remove(); | |
$('<input type="text" autocorrect="off" id="lead_address_alt" name="lead[address]" required="required" placeholder="Street Address" class=" form field text _lead_address ">').insertAfter('input#lead_address'); | |
$('input#lead_address').remove(); | |
$('<input type="number" pattern="\d*" id="lead_zipCode_alt" name="lead[zipCode]" required="required" placeholder="Zip Code" class=" form field text _lead_zipCode ">').insertAfter('input#lead_zipCode'); | |
$('input#lead_zipCode').remove(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment