Try this
$(function() {
$( "#datepicker" ).datepicker({ maxDate: new Date() });
});
Or you can achieve this using as below:
$(function() {
$( "#datepicker" ).datepicker({ maxDate: 0 });
});
More Related Contents:
- putting datepicker() on dynamically created elements – JQuery/JQueryUI
- How to reload current page without losing any form data?
- How to disable text selection using jQuery?
- Javascript Drag and drop for touch devices [closed]
- Prevent jQuery UI dialog from setting focus to first textbox
- How to change the pop-up position of the jQuery DatePicker control
- How can I bind to the change event of a textarea in jQuery?
- Combine multiple JavaScript files into one JS file [closed]
- jQuery UI Accordion Expand/Collapse All
- jQuery Drag/Resize with CSS Transform Scale
- Apply jQuery datepicker to multiple instances
- How do I drag multiple elements at once with JavaScript or jQuery?
- Calling a function on Bootstrap modal open
- Trees in Twitter Bootstrap [closed]
- jQuery UI AutoComplete: Only allow selected valued from suggested list
- Find all the days in a month with Date object?
- How to use jQuery UI Calendar/Date PIcker for week rather than day?
- jquery-ui-dialog – How to hook into dialog close event
- jQuery UI Dialog Box – does not open after being closed
- Submit jQuery UI dialog on
- How to get value from jQuery UI slider?
- JQuery show and hide div on mouse click (animate)
- showing progressbar progress with ajax request
- jQuery Datepicker “After Update” Event or equivalent
- Why multiple datepicker not working?
- Remove Datepicker Function dynamically
- Differentiate between focus event triggered by keyboard/mouse
- Bootstrap and jQueryUI Conflict
- How to use jQuery UI with Angular 2
- Queue AJAX calls