Support

Account

Home Forums ACF PRO Programatically control Select2 fields Reply To: Programatically control Select2 fields

  • Hi @andrew-fleming

    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.