How to set the calender date using jquery in wordpress/ वर्डप्रेस में jQuery का उपयोग करके कैलेंडर तिथि कैसे सेट करें?
This code helps to disable passed dates and user can select current or up coming dates.
यह कोड gujr chuki dates ko disable करने में मदद करता है और user वर्तमान या आने वाली तिथियों का select कर सकता है।
Following are the code:
निम्नलिखित कोड हैं:
jQuery(document).ready( function( $ ) {
setTimeout(
function() {
let today = new Date();
today.setDate( today.getDate());
let options = {
minDate: today,
};
flatpickr( "#form-field-field_0dcfd60", options );
},
500
);
} );
Description:
getDate() method is used to get the date and #form-field-field_0dcfd60 is id of calender.
getDate() विधि का उपयोग दिनांक प्राप्त करने के लिए किया जाता है और #form-field-field_0dcfd60 कैलेंडर की आईडी है।
The Output of this code are following:
इस कोड का आउटपुट निम्नलिखित है:
I hope you have learned from reading this post. If you like this post then share it with your friends and you can comment on any of your doubts and I will replay then at the earliest.
मुझे उम्मीद है कि आपने इस पोस्ट को पढ़कर सीखा होगा। अगर आपको यह पोस्ट पसंद आया हो तो इसे अपने दोस्तों के साथ शेयर करें और आप अपने किसी भी संदेह पर टिप्पणी कर सकते हैं और मैं इसे जल्द से जल्द फिर से चलाऊंगा।
Please do not entering spam link in the comment box ConversionConversion EmoticonEmoticon