jquery click function
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
jquery click function
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
jquery click event
$('#selector').on('click',function(){
//Your code here
});
jquery onclick function
$( "#other" ).click(function() {
$( "#target" ).click();
});
css click event jquery
$('h1').click(function () {
$(this).css('color', 'blue')
});
on click jquery
$( "#dataTable tbody tr" ).on( "click", function() {
console.log( $( this ).text() );
});
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
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