jQuery(document).on('click', '#loadMore', function () { jQuery('#loading-image').show(); jQuery(document).find('#load-data').addClass('show-overlay'); var cat_name = jQuery('.slider-feature-section').find('.current-cat').attr('data-slug'); data_page = jQuery(this).attr('data_page'); jQuery(this).parents('.show-more').remove(); jQuery.ajax({ type: "post", url: TOPNZCASINOPUBLIC.ajaxurl, data: { action: "load_more", page: data_page, cat_name: cat_name }, success: function (response) { jQuery("#load-data").append(response); jQuery('#loading-image').hide(); jQuery(document).find('#load-data').removeClass('show-overlay'); } }); });
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter