Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support for a last slider value callback #67

Open
biggi24 opened this issue Aug 1, 2014 · 0 comments
Open

support for a last slider value callback #67

biggi24 opened this issue Aug 1, 2014 · 0 comments

Comments

@biggi24
Copy link

biggi24 commented Aug 1, 2014

I try the slider values to send to the ajax function, but i need only the last values.

$(".range-input").simpleSlider({
range: [1,100],
value: 80,
step: 1
}).bind("slider:changed", function (event, data) {
var sliderValue = data.value.toFixed(0);
$(this).parent().click(function(event) {
console.log('value: '+sliderValue);
});
});

I get...

value: 1
value: 2
value: 3
value: 5
etc.

how i get the last value to send on my ajax-function?

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant