简体   繁体   中英

trigger event on acf tab click - how to

I would like it so that when a user clicks on a particular TAB on an ACF form, this triggers a javascript event.

Something like:

$('#acf-field_57f8b36e99fcb').on('click', function() {
    alert ("tab clicked");
});

But this doesn't work. (Nor does .focusin, .focusout etc).

Does anyone know if this is possible and how to do it?

动态添加任何字段时,您需要再次将其绑定到jquery / Javascript函数。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM