jQuery for custom plugin not working with Divi theme
jQuery for custom plugin not working with Divi theme
jQuery for custom plugin not working with Divi theme
So I worked out how to do this, with a little help from Tonya Mork @ KnowTheCode and a tutorial on adapting the quick edit by Rachel Carden. I need to refactor the code down, there’s still a lot of repetition but I’m pretty much a Javascript/jQuery novice, so please bear with me. Anyway the … Read more
Can’t get done anything with admin.php response
WordPress AJAX Load More function duplicating a post
Well, this question is old but still has no answer! Here is a small solution for future visitors. Implementing load more button for comments without plugins is simple enough: Create a button if comment pages are 2 and more Create a jQuery script that will process the button click event and passes the current comment … Read more
WooCommerce Ajax Cart Update Stopped Working
start.js:45TypeError: Not enough arguments on Safari [closed]
Ajax request returns ‘Array’. How to output the actual results?
I was able to solve this by using the WooCommerce api with only jQuery. $(“.check-zip”).on(‘click’, function () { var zipCode = jQuery(“#custom_zip”).val(); var zipArray = []; var url = WPURLS.template_url; $(“.zip-msg”).remove(); $.ajax({ type: ‘GET’, url: url + ‘/wp-json/wc/v2/shipping/zones/1/locations’, dataType: “json”, data: { type: ‘postcode’ }, beforeSend: function (xhr) { xhr.setRequestHeader(‘X-WP-Nonce’, wpApiSettings.nonce); }, success: function (data) … Read more
I found the solution using the load() function of jquery, simply add a click event for the clicked element and use load() to the element you want.