javascript onclick jquery function code example
Example 1: jquery onclick function
$( "#other" ).click(function() {
$( "#target" ).click();
});
Example 2: class onclick jqery
$(".addproduct").unbind().click(function(){
//do something
});
Example 3: on click jquery
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
Example 4: set onclick jquery
$(elem).click(myFunc());