RuslanLann
3/26/2018 - 1:06 PM

Ajax call by click

Ajax call by click

 $(".logo a").click(function(e) {
            e.preventDefault();
            var data = {
                action: "counter"
            };

            $.ajax({
                url:  ProjectLinks.backendSiteName + "/wp-admin/admin-ajax.php",
                type: "POST",
                data: data,
                dataType: "json",
                success: function(response) {
                    console.log(response);
                }
            });
		});