Q:

jquery do click

$( "#target" ).click(function() {
  alert( "Handler for .click() called." );
});
23
$('#selector').on('click',function(){
    //Your code here
});                  
21
$( "#dataTable tbody tr" ).on( "click", function() {
  console.log( $( this ).text() );
});
4
$(selector).click();
2
$( "#foo" ).bind( "click", function() {
  alert( "User clicked on 'foo.'" );
});
1
$( "#target" ).click(function() {
  alert( "Handler for .click() called." );
});
-1
$( "#other" ).click(function() {
  $( "#target" ).click();
});
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