Hey there I trust you’re having an awesome week!
I’m running the latest versions of WP and Pro. I have a Content Area Off Canvas element with class "begin-chat"
. I’m wanting to execute some code when the toggle is clicked. So I have the below…
jQuery(function($){
$(document).on('click', .begin-chat', function(){
console.log('do something here');
})
})
However, the code never fires… I don’t see anything in the log. it seems that the theme has preventDefault()
and maybe even stopPropogation()
on toggle clicks… Is that accurate? Either way, is it possible to run some code on the toggle click?
Thanks heaps for your time! Conor