on cikck jquery code example
Example 1: jquery click event
$('#selector').on('click',function(){
//Your code here
});
Example 2: onclick Event jquery
// Html
<input type="text" onchange="MyFuction(this)" />
// Js
function MyFunction(item) {
var input = $(item);
console.log(input);
}