Skip to content

Instantly share code, notes, and snippets.

@mahbub-shohag
Created November 29, 2017 08:02
Show Gist options
  • Save mahbub-shohag/364e67b8757734bcd5ad94ac6863ff2e to your computer and use it in GitHub Desktop.
Save mahbub-shohag/364e67b8757734bcd5ad94ac6863ff2e to your computer and use it in GitHub Desktop.
Date Picker :
1.to embed jquery datepicker firstly add the following jquery files in header part
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.1/themes/smoothness/jquery-ui.css">
<script src="~/Scripts/jquery-3.2.1.js"></script>
<script src="~/Scripts/jquery-ui-1.12.1.js"></script>
2.<script>
$(document).ready(function () {
$('#PossibleStartDate').datepicker(); --this is the id field of the datefield
$('#PossibleEndDate').datepicker();
$('#PossibleEndDate').on('leave', function () {
alert(($(this).html()))
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment