Alex
0
Q:

onclick event in jquery ajac

 $('h1').click(function () {
        $(this).css('color', 'blue')
    });
2
$('a').click(function(){
$.ajax({
type: "POST",
url: "mysimplepage.php",
async: true,
data: { logDownload: true, file: $(this).attr("name") }
});
return false;
});
0

$(document).on('click',".any_user_logout",function(){
  signOut()
  window.location.href = '/logout'
})

function signOut() {
    var auth2 = gapi.auth2.getAuthInstance();
    auth2.signOut().then(function () {

    });
  }
-1

New to Communities?

Join the community