button onclick perform jquery code example
Example 1: jquery onclick function
$( "#other" ).click(function() {
$( "#target" ).click();
});
Example 2: onclick Event jquery
// Html
<input type="text" onchange="MyFuction(this)" />
// Js
function MyFunction(item) {
var input = $(item);
console.log(input);
}