0
Q:

jquery onclick function show alert


    $("p").click(function(){
  alert("The paragraph was clicked.");

 }); 
0
$('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