Home › Forums › Backend Issues (wp-admin) › Range Values not working on back end › Reply To: Range Values not working on back end
The reason why the old code is not working is that $('#range-id input[type=number]')
may not exist on the page when you are looking for it. In this case it is just not there on $(document).ready
. When elements are added dynamically with JS instead of adding the action to the element you need to add the action to the document with the selector target.
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.