Max
0
Q:

jquery onclick function

$( "#target" ).click(function() {
  alert( "Handler for .click() called." );
});
23
$('#selector').on('click',function(){
    //Your code here
});                  
21
 $('h1').click(function () {
        $(this).css('color', 'blue')
    });
2
$( "#other" ).click(function() {
  $( "#target" ).click();
});
0
$(selector).click();
2
//Click for event to trigger

$( "#target" ).click(function() {
  alert( "Handler for .click() called." );
});
1

<button onclick="myFunction()">Click me</button>
 
0
$(elem).click(myFunc());
2

$(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