Attaching an event listener to a specific input range value

Having an html input range values from 0 – 100 , how can i attach an event listener to specific values?
For example, when reaching values of 45, change the background color.

<input id="myrange" type="range" min="0" max="100" />


Source: html5

Leave a Reply