Did it with the window.wp.customize.bind()
method. Hope this helps someone else.
Related Posts:
- Retrieve customizer value using ajax or customizer api and print the value in theme
- My javascript is returning this error: $.ajax is not a function
- Can’t get a JSON object in response to an Ajax request with wp_ajax
- Infinite scroll / lazy loading with NextGen Gallery [closed]
- Ajax call does not activate callback function
- Trying to get single posts to load on the front page via ajax
- Ajax not firing properly using Firefox, but works in Chrome
- How to Use JSON With AJAX?
- Using wp_ajax and wp_ajax_nopriv hooks
- Hide/show customizer controls based on other settings in Customizer
- wp_ajax unauthenticated and authenticated
- WordPress ajax function parameter value not being passed
- Loading posts via AJAX in a hidden div with updated URL?
- Correct way to write jQuery functions in WordPress
- WooCommerce Ajax Cart Update Stopped Working
- How to Dynamically Load Content Into Body of Bootstrap Modal Window?
- Trouble with WordPress Ajax Login System – 302
- videopress videos are not displayed when loading the content with ajax in a lightbox
- How to return multiple arguments from AJAX callback function
- url – ajax loaded but no JS
- WP Customizer compare and set a value via javascript
- Callback After WordPress Customizer Complete Loading
- Ajax Validation for reCaptcha
- Properly embed javascript into WP (using function.php) – doesn’t work?
- Custom AJAX form not working async
- AJAX Success Function using JS substr() fails in WP 4.1 vs 4.0
- Is there some jQuery conflict here?
- Ajax page load in wordpress the right way?
- Customizer add query to preview URL
- Orderby post__in Not Working Correctly?
- Get ajaxForm response value
- Displaying contents of a tab
- Widget won’t work due to old JavaScript? Any ideas how to make it work? [closed]
- jQuery equivalent of JavaScript’s addEventListener method
- How to send multiple data fields via Ajax?
- Adding an onclick function to go to url in JavaScript?
- Checking a Url in Jquery/Javascript
- How to generate a simple popup using jQuery
- Jquery Ajax Posting JSON to webservice
- AJAX response error: net::ERR_EMPTY_RESPONSE
- How is JavaScript .on() method defined?
- JQuery: $.get is not a function
- How can I expand and collapse a using javascript?
- Javascript : array.length returns undefined
- How to prevent wordpress from loading old versions of jquery in wp_head();?
- How to get a jQuery script to run on a page?
- WP set auth cookie using Ajax is not saved to browser
- WordPress Ajax always returns a 404 error
- Modify Custom Field in Media Library using JavaScript
- ajax call in wordpress front end
- Prevent five different copies of jquery from being included on every page
- javascript is not working on Event Submission?
- Click loads template via ajax
- WordPress audio player causing js error, mediaelementplayer is not a function
- Auto-detect javascript errors and warn theme user
- combining js scripts from a js newb [closed]
- Sending jsPDF documents to the server
- How to show jquery popup only in one page or once?
- Jquery not showing in homepage
- AJAX request status 200 but no actual “response”
- How to get those data using with ajax json?
- Save Search System
- dynamic dependent select dropdown
- Radio buttons live refresh in the customizer
- Limit filetype and wp media
- How do I Import / Upload Files with jQuery AJAX?
- wordpress add_action() issue in ajax call
- Create special WordPress slideshow with “jquery.cycle.all.js”
- Disable Cloudflare Rocket Loader for jQuery javascript and make it load first
- wp_mail doesn’t work when logged in?
- Call current post URL in ajax
- jQuery selectable() function won’t work in wordpress
- Null/undefined return in WordPress AJAX request
- Manipulate retrieved ajax data in php
- How To Include JavaScript Files Only In Single Posts?
- WordPress Front-End Theme Editor
- Change Query Arguments (filter) with jQuery/Ajax or PHP?
- How to display contact form 7 form in vanilla js without jquery in frontend
- Tracking Visitor LatLng with WordPress using JS, PHP. How to put data which was extract using JS into DB
- Admin-ajax.php 404 error
- How to pass values from one function to the other using an array variable
- Ajax sometimes work and sometimes just don’t work
- Javascript output now showing in custom widget
- Remove button from page if viewed through Customizer
- How to submit form data in the same page in WordPress without reloading the page?
- why does so many javascript libraries are loaded along with my website?
- Why does my media selection script write to ONLY the first input field?
- Modify the href attribute of tag dynamically in WordPress
- Default Image not showing up in Customizer for WP_Customize_Cropped_Image_Control
- Add a jQuery snippet for sepcific user role
- Move jQuery on *top* of footer
- JQuery and Javascript to pan image
- How to add JS snippet before closing tag?
- How to specify url for ajax call in wordpress plugin
- Call admin ajax using absolute url? Relative URL breaks (frontend ajax)
- Page keeps refreshing with Ajax form
- Are you sure popup on Contact Form 7 [closed]
- Ajax request with jQuery without WP_ajax
- JS file not loading [closed]
- How to add input file plain text and submit to publish?