Last active
August 29, 2015 14:10
-
-
Save devdays/5293efbc4e745f8c1f8d to your computer and use it in GitHub Desktop.
HTML5 Forms with Modernizr
This file contains 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
<script src="Scripts/modernizr-2.5.3.min.js" type="text/javascript"></script> | |
<script> | |
Modernizr.load({ | |
test: Modernizr.input.placeholder, | |
nope: function () { | |
Modernizr.load('Scripts/yourplaceholderpolyfill.js'); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment