filmov
tv
jQuery UI DatePicker: How to Disable (Make Non-Selectable) Required Dates in Date Picker
![preview_player](https://i.ytimg.com/vi/vUUNH0zUeOg/maxresdefault.jpg)
Показать описание
jQuery in Action: Build 15 jQuery Projects
jQuery UI in Action: Build 9 jQuery UI Projects
Hands-On jQuery: jQuery Examples
Find all our Udemy courses here:
To learn jQuery from scratch and to increase your productivity as a web developer, click this link!!
jQuery UI DatePicker: Make Required Dates Disabled (Non-Selectable)
It is so easy to add a date picker with jQuery UI Datepicker widget. You just need to use the datepicker method. The Datepicker widget offers a number of options to customize your date picker. Many times, you will have to make some of the dates disabled or non-selectable. If you are developing an appointment form where you should not give appointments on holidays or Sundays. In that case, it would be better to disable those dates so that user will not select those dates even by mistake. You can accomplish this using beforeShowDay option. You need to return an array where the first item in the array needs to be true or false based on whether you want the date selectable (true) or non-selectable (false). In this video, we will make all Saturdays and Sundays as well as January 1st non-selectable.
If you do not know how to write jQuery code easily and simply, see this video tutorial.
To know how to mark holidays in jQuery UI datepicker, see the video at
To know how to enable dates before/after specific dates in jQuery UI datepicker
To know how to format selected date in jQuery UI datepicker
jQuery UI in Action: Build 9 jQuery UI Projects
Hands-On jQuery: jQuery Examples
Find all our Udemy courses here:
To learn jQuery from scratch and to increase your productivity as a web developer, click this link!!
jQuery UI DatePicker: Make Required Dates Disabled (Non-Selectable)
It is so easy to add a date picker with jQuery UI Datepicker widget. You just need to use the datepicker method. The Datepicker widget offers a number of options to customize your date picker. Many times, you will have to make some of the dates disabled or non-selectable. If you are developing an appointment form where you should not give appointments on holidays or Sundays. In that case, it would be better to disable those dates so that user will not select those dates even by mistake. You can accomplish this using beforeShowDay option. You need to return an array where the first item in the array needs to be true or false based on whether you want the date selectable (true) or non-selectable (false). In this video, we will make all Saturdays and Sundays as well as January 1st non-selectable.
If you do not know how to write jQuery code easily and simply, see this video tutorial.
To know how to mark holidays in jQuery UI datepicker, see the video at
To know how to enable dates before/after specific dates in jQuery UI datepicker
To know how to format selected date in jQuery UI datepicker
Комментарии