HTML Spinbutton up/down arrows event

Viewed 20

This is the code i am using (i have 350 different INPUT like this one in my page) :

<INPUT role=spinbutton aria-valuemax=500 aria-valuemin=0 aria-valuenow=1 type=number value=0 onchange=”montant(X, Y, Z);” name=nb_cde_1>

Currently I use the INPUT HTML object with the SpinButton role.

montant(X,Y,Z) is a JavaScript function which is lauched when I detect the onChange event.

The problem is that the onChange event is too general, and I need to distinguish if the change is due to the user clicking the top arrow of the spinButton, or if the user clicked the bottom arrow of the spinButton. What are the events that make it possible to identify these two actions separately ?

Thanks in advance

0 Answers
Related