funkcia kliknutia jquery
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
na kliknutie jquery
$( "#dataTable tbody tr" ).on( "click", function() {
console.log( $( this ).text() );
});
funkcia jquery onclick
$( "#other" ).click(function() {
$( "#target" ).click();
});
nastaviť onclick jquery
$(elem).click(myFunc());
jquery na funkciu kliknutia
//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