tags:

views:

669

answers:

1

hi all i am using jquery slider plugin below this:

<script type="text/javascript">
    $(document).ready(function() {
        $("#slider").slider({ min:-10 }, { max: 500 }, { step: 1 });


        $('#slider').bind('slidechange',

function(event, ui) { var value = $('#slider').slider('option', 'value'); alert(value); });

    });
</script>

But max value is not initialized,always set 100.Whats wrong? thx

+2  A: 

You have to write it this way :

$("#slider").slider({ min:-10, max: 500, step: 1 });
ybo
omg its a syntax problem :)very thx
jadeWarlord