Home › Forums › ACF PRO › Change null value in select › Reply To: Change null value in select
Why not making some “From” and “Till” values (as default) for the selects and setting the fields as required?
If you need jQuery, you should use the simple selects, not the data selects. Otherwise, you can try something like this:
(function($) {
$('select.field-class').find('option').first().text('From');
$('select.field-class').find('option').first().text('Till');
})(jQuery)
Useful link:
Adding custom javascript to fields
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.