hello all i am stuck in a problem if any body has a solution please guide me on that.
basically i want to triggered event of jqueryDatePicker and get the selected date on clicking on any date.
I search but didn't get the solution.
below is my code
app.directive('jqdatepicker', function () {
return {
restrict: 'A',
require: 'ngModel',
link: function ($scope, $element) {
$element.datepicker({
dateFormat: 'DD, d MM, yy',
onSelect: function (date) {
$scope.date = date;
$scope.$apply();
}
});
}
};
});
and i want to call a below function to be fire when date is selected
JavaScript
function lastDate(date) { var lDate = date var myDate = new Date(lDate ); }

Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Apr 26, 2016, 5:00 AM EDT
$("#dt").datepicker({ onSelect: function(dateText, inst) { var date = $(this).val(); var time = $('#time').val(); alert('on select triggered'); $("#start").val(date + time.toString(' HH:mm').toString()); //call your function here } });mayur singh53 reputationPosted Apr 26, 2016, 5:37 AM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Apr 26, 2016, 6:32 AM EDT
Vincent Maverick DuranoRank #238 · 10.3K reputationPosted Apr 26, 2016, 6:34 AM EDT