Created
August 10, 2014 03:08
-
-
Save webspace-jp/77ae1bed6da51c18758c to your computer and use it in GitHub Desktop.
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
$(function(){ | |
$('[data-toggle=datepicker]').each(function () { | |
var target = $(this).data('target') || ''; | |
if (target) { | |
$(target).datepicker({ | |
"showOn": "" | |
}); | |
$(this).bind("click", function () { | |
$(target).datepicker("show"); | |
}); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment