event onclick in jquery code example
Example 1: jquery click event
$('#selector').on('click',function(){
//Your code here
});
Example 2: set onclick jquery
$(elem).click(myFunc());
$('#selector').on('click',function(){
//Your code here
});
$(elem).click(myFunc());