Custom trigger event not working
-
Hi
I have set wordpress video shortcode in popup and i want to make it auto play
jQuery(document).on('wppopups.popup_opened',function(e,id){ if( id == '3012' ) { console.log('Opened popup'); jQuery("div.mejs-button.mejs-playpause-button.mejs-play > button").trigger('click'); } });
Added above code but its not working properly, sometimes works only one time and on second refresh page its not working anymore and sometimes its not working at all.
Thank
Make
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Custom trigger event not working’ is closed to new replies.