Kuala Lumpur, Malaysia
Information & Technology .
Full time
Ontario, Newfoundland, Nova Scotia, Quebec, Manitoba, Saskatchewan, Alberta, British Columbia, Virtual
Information & Technology .
Full time
More Job results
jQuery(document).ready(function($) { var ajaxUrl = "https://www.traveldailymedia.com/wp-admin/admin-ajax.php"; var page = jQuery('#page').val(); // What page we are on. var ppp = 10; // Post per page $("#load_more_extrenal_jobs").on("click",function(){ // When btn is pressed. var total_posts=jQuery("input[name=total_posts]").val(); $("#load_more_extrenal_jobs").attr("disabled",true); // Disable the button, temp. jQuery(".job_list_container").css("opacity","0.3"); jQuery(".job_list_container").css("pointer-events","none"); $.post(ajaxUrl,{ action:"load_external_job", offset: (page * ppp), ppp: ppp }).success(function(posts){ $(".load_job_list_container").append(posts); // CHANGE THIS! $("#load_more_extrenal_jobs").attr("disabled",false); if(jQuery("input[name=total_posts]").val()<=((parseInt(page)*ppp)+ppp)){ jQuery('#load_more_extrenal_jobs').css("display","none"); } /* Increment page by 1 */ var page_val = page++; jQuery('#page').val(page_val); jQuery(".job_list_container").css("opacity","1"); jQuery(".job_list_container").css("pointer-events","unset"); }); }); });
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time
Close