Problems with slider.. anyone have any suggestions?

Problems with slider.. anyone have any suggestions?


Hi all: I'm trying to create ruby helpers to wrap the ui elements and
things are going pretty well, (we are going to release these ruby/
rails helpers when we are done) but I seemed to have hit a snag. My
application.js code looks like:$(document).ready(
        function()
        {
            $(".ui-slider").slider({
     minValue: $(this).attr("min"),
     maxValue: $(this).attr("max"),
     steps: $(this).attr("steps"),
     slide: function(e,ui){$("#"+$
(this).attr("field")).val(ui.value);},
     change: function(e,ui){$("#"+$
(this).attr("field")).val(ui.value);}
            });
        }); The slide and change functions work. It uses the this variable
and looks at the field attribute to target the correct dive to insert
a value into a form field. However, the same use of this.attr for min/
max/steps are not working. Is the fact that (this) will work for
slide/change but not min/max/steps a bug, or does anyone have any
suggestions?