Reputation: 89
Friends my function works fine in Chrome but does not work in Firefox and gives error: Uncaught TypeError: Property 'handleEvent' is not callable
.
my function : function test(){ var a12= parseInt(document.querySelector("#number").value);var a13 = a12.toLocaleString(); SendOrderApi.setOrderCount(a13);}
What is the cause of this error? And how do I fix this?
function test(){
var a2= parseInt(document.querySelector("#number").value);
var a3 = a2.toLocaleString();
document.getElementById("s01").innerText=a3;
}
<input id="number" type="number" onmousewheel="test()">
<br>
<span id="s01">12</span>
Upvotes: 2
Views: 427
Reputation: 146340
mousewheel
isn't a standard handler. The standard is wheel
:
function test(){
var a2= parseInt(document.querySelector("#number").value);
var a3 = a2.toLocaleString();
document.getElementById("s01").innerText=a3;
}
<input id="number" type="number" onwheel="test()">
<br>
<span id="s01">12</span>
Upvotes: 4