Skip to content

Instantly share code, notes, and snippets.

@pauleveritt
Created August 15, 2013 11:49
Show Gist options
  • Save pauleveritt/6240225 to your computer and use it in GitHub Desktop.
Save pauleveritt/6240225 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
deform.addCallback(
'deformField1',
function(oid) {
if (!Modernizr.inputtypes['date'] ||
"date" != "date"){
$('#' + oid).datepicker({'dateFormat': 'yy-mm-dd'});
}
}
);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment