Home › Forums › ACF PRO › Programatically control Select2 fields › Reply To: Programatically control Select2 fields
Please try to post code in code-tags so it’s easier to read, copy etc 🙂
There’s a few things you can check here. For starters, make sure that your selector is correct
#acf-field_55c1f48f145b8-55dec8c84845f-field_55c1f4bd145b9
I think that all subfield have their own specific IDs so you might have to rethink how you target them. Also, do a console.log($el)
to see wether the element you’re in actually has the select field as a descendant.
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.