Created
July 8, 2015 22:14
-
-
Save malcolmp/c7399e98a7b9a18f53ce to your computer and use it in GitHub Desktop.
IGA Common Webform Datepicker Example
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
| if(Modernizr && Modernizr.inputtypes.date){ | |
| require(["IGA.common.webform"], function(Webform){ | |
| $form.find(".form-item-birthdate.form-type-date-text input").attr({ | |
| type: "date", | |
| autocomplete: "bday", | |
| placeholder: "mm/dd/yyyy", | |
| required: null | |
| }); | |
| $form.find(".form-type-date, .form-type-date-select, .form-type-date-text").each(Webform.dateInput); | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment