The change event for input type=text triggered after losing focus, and for type=range it triggers immediately when changed, how to catch the moment when a person finishes moving the slider? mouseover does not seem to work, because the work with the site will take place from the tablet, or am I wrong?

    1 answer 1

    I do not observe the problem described by you.

     jQuery(document).ready(function($) { $('input').change(function() { console.log('Change: ' + $(this).val()) }); }); 
     <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <input type="range" /> 

    While we move the slider (enter text) we modify the value of input and the event does not occur. When we threw a slider (left the text input) we say that the changes are over and you can pick up the event. Everything is logical.

    • Changed the question, please see now what's the problem? - GicO
    • @GicO You completely changed the essence of the question with your editing. I rolled back the question to the original version. If my answer solved your problem, mark it as correct. If you have another question - ask it as new - Anton Shchyrov