code_junkie

JQuery Slider not passing tenths value

Nov 12th, 2011
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. $(document).ready(function(){
  2. $("#scoreSlider").slider({
  3. 'steps': 40,
  4. 'min': 1.0,
  5. 'max': 5.0,
  6. 'startValue': 3,
  7. 'slide': function(e, ui){
  8. document.getElementById('div_score').innerHTML = ui.value;
  9. }
  10. });
  11. });
  12.  
  13. $(document).ready(function(){
  14. $("#scoreSlider").slider({
  15. 'steps': 40,
  16. 'min': 10,
  17. 'max': 50,
  18. 'startValue': 30,
  19. 'slide': function(e, ui){
  20. document.getElementById('div_score').innerHTML = ui.value/10.0;
  21. }
  22. });
  23. });
Add Comment
Please, Sign In to add comment