Home › Forums › General Issues › Datepicker to text field › Reply To: Datepicker to text field
Thanks for the inputs, I did something like what John purposed at first but then I did solve this myself with standard jQuery. I simply added a class to the field, “datepick” and then loaded a jQuery datepicker with this code in the wordpress admin.
jQuery(document).ready(function(){
jQuery( ".datumpick .acf-input input[type=text]" ).datepicker();
});
Its not the ACF datepicker but it is just like it and works just as I want. I can add a date with the datepicker or I can write any word or sentence.
Hope it may help someone in the future as well.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.