Invalid left hand assignment
Could someone please explain why following code throws Invalid left hand
assignment error on this = evt.target;
validateNumber: function( evt ) {
this = evt.target;
if (/\D/g.test(el.value)) {
// Filter non-digits from input value.
el.value = el.value.replace(/\D/g, '');
}
},
No comments:
Post a Comment