jquery click function
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
jquery click function
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
jquery on click function
//1st way
$(".searchCategory").click(function () {
//your code here
});
//2nd way
$(".searchCategory").on( "click",getCategory); // getCategory is a function but don't need the pharenthesis
//if you write getCategory() instead of getCategory when getCategory is a function with no pharamenters it might not work
on click jqueyr
//Click for event to trigger
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
jquery bind click
$( "#foo" ).bind( "click", function() {
alert( "User clicked on 'foo.'" );
});
jquery $(document.on click
$(document).on("click","#test-element",function() {});
jquery click method
$("p").click(function(){
$(this).hide();
});
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us