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

Slider isn't refreshed properly when value is set to empty string #3029

Closed
anpsince83 opened this Issue Nov 11, 2011 · 1 comment

Comments

Projects
None yet
3 participants
@anpsince83

anpsince83 commented Nov 11, 2011

When you set a slider's input value to an empty string and refresh it, ie: $("#myslider").val('').slider('refresh');, the slider handle stays in place and does not move back to the beginning as you would expect.

This is easy to reproduce: go to http://jquerymobile.com/demos/1.0rc2/docs/forms/slider/index.html, and put $('#slider-0').val('').slider('refresh'); into the console, run it, and you will see the slider handle does not move.

@nalinwijayasinghe

This comment has been minimized.

Show comment
Hide comment
@nalinwijayasinghe

nalinwijayasinghe Apr 11, 2014

Wow. It is working. Thanks bro....I have tried in so many ways. But failed. Finally I got this and it is working nicely. Thank you very much....

nalinwijayasinghe commented Apr 11, 2014

Wow. It is working. Thanks bro....I have tried in so many ways. But failed. Finally I got this and it is working nicely. Thank you very much....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment