Skip to content

Instantly share code, notes, and snippets.

@webspace-jp
Created August 10, 2014 03:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webspace-jp/77ae1bed6da51c18758c to your computer and use it in GitHub Desktop.
Save webspace-jp/77ae1bed6da51c18758c to your computer and use it in GitHub Desktop.
$(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