Support

Account

Home Forums Backend Issues (wp-admin) List of JS hooks Reply To: List of JS hooks

  • Hi, thanks for this useful example.

    How would you go about detecting the change on a switch field?

    Right now it seems my function (triggered like yours with the “change” hook event) fires before the switch is changed (the visual switch div receives an ‘-on’ class). It causes my function to not be able to check properly if the switch is on or not.

    I’m no JS or WP expert but I was wondering if there was a way to tell my function to fire after the acf jquery, using the “change” hook.

    Thanks a lot for the help fellas,