I
I
Igor Roschak2016-10-19 15:52:49
JavaScript
Igor Roschak, 2016-10-19 15:52:49

How to get the value when you remove your finger from the screen?

Hello.

There is such a plugin , you need to send the value of the "slider" to the server when you remove your finger from the screen.
How can you implement such an action with jQuery?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton fon Faust, 2016-10-19
@iRoschak

https://github.com/seiyria/bootstrap-slider
handle slideStop event

D
Dima Pautov, 2016-10-19
@bootd

Use touch events, in this case touchend .

// Примерно так

$(document).on('touchend', '.slider-handle', function(){
 // Тут получаем значение ползунка, используя методы плагина и отправляем их куда угодно
});

Or see if your plugin has similar events

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question