Trigger custom jQuery when Ajax Endpoint is enabled on adding body class
-
Hi! Great plugin and it works awesome!
Just hit a road block, and would like your thoughts on how to run a jQuery snippet when the body class (added by) geoeip-detect is added via Ajax?
Sample$(document).ready(function($) {
if ($('body').hasClass('geoip-country-AU')) { //class added by geo-ip detect via AJAX
$('#pum-3882').popmake('open');
}
});
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Trigger custom jQuery when Ajax Endpoint is enabled on adding body class’ is closed to new replies.