There is such an input
<input type="text" class="correctMoney"> There is a function for example
function correctMoney (e){ alert($(e.currentTarget)) } how do i register an event like so
$('.correctMoney').on('click', correctmoney(event, {forDisplay: true, classOfDomElement: 'resOne,resTwo', showPoint: false})); just if I prescribe so then I get an error when loading the page
Cannot read property 'currentTarget' of undefined Threat trying to modify github index.html here with
<input type="text" class="correctMoney" onkeyup="correctmoney(event, {forDisplay: true, classOfDomElement: 'resOne,resTwo', showPoint: false})"> on
<input type="text" class="correctMoney"> <script> $('.correctMoney').on('click', correctmoney(event, {forDisplay: true, classOfDomElement: 'resOne,resTwo', showPoint: false})); </script>