diff --git a/js/jquery.mobile.forms.slider.js b/js/jquery.mobile.forms.slider.js index 9cac74b4..61fac56f 100644 --- a/js/jquery.mobile.forms.slider.js +++ b/js/jquery.mobile.forms.slider.js @@ -34,7 +34,7 @@ $.widget( "mobile.slider", $.mobile.widget, { }, min = (cType == 'input') ? parseFloat(control.attr('min')) : 0, max = (cType == 'input') ? parseFloat(control.attr('max')) : control.find('option').length-1, - step = window.parseFloat(control.attr('data-step') || 1), + step = window.parseFloat(control.attr('step') || 1), slider = $('
'), handle = $('') .appendTo(slider) diff --git a/tests/unit/slider/index.html b/tests/unit/slider/index.html index 02787f98..a8fc034d 100644 --- a/tests/unit/slider/index.html +++ b/tests/unit/slider/index.html @@ -77,6 +77,10 @@ +
+ +
+