3
Contributors
3
Replies
13
Views
3 Years
Discussion Span
Last Post by chaitu11
0

Are you talking about a HTML5 datepicker input or a framework/library datepicker e.g. jqueryUI ?

If you're talking about the former - perhaps you need to realise that the user may not be using a browser that displays the datepicker in the way that you think it does. Therefore the user needs a textbox of some description to enter the date. A library picker on the other hand should display in the manner you need, unless js is limited/off.

Edited by diafol

0
[datepickerFld].disabled = true;

or for browsers which don't support boolean properties in exact maner please use the following syntax:

[datepickerFld].setAttribute("disabled", "disabled");

Cheers

0
$('#startdate').keydown(function(e) {
   e.preventDefault();
   return false;
});

$('#enddate').keydown(function(e) {
   e.preventDefault();
   return false;
});
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.