how to add onclick event to button in jquery code example
Example: onclick Event jquery
// Html
<input type="text" onchange="MyFuction(this)" />
// Js
function MyFunction(item) {
var input = $(item);
console.log(input);
}
// Html
<input type="text" onchange="MyFuction(this)" />
// Js
function MyFunction(item) {
var input = $(item);
console.log(input);
}