Range slider missing } after property list
Hi,
I am new to jquery and I was trying to run the range slider example. I get the example working and I was trying to add in other methods so I added the slide method but when I do I get the error
Missing } after property list
I am not sure what I am doing wrong this is the js I am using
<script type="text/javascript">
$(function() {
$("#slider-range").slider({
range: true,
min: 0,
max: 500,
values: [75, 300],
slide: function(event, ui) {$("#amount").val('$' + ui.values[0] + ' - $' + ui.values[1]);}
change: function(event, ui) {alert(ui.values);}
});
$("#amount").val('$' + $("#slider-range").slider("values", 0) + ' - $' + $("#slider-range").slider("values", 1));
});
</script>
This also brings up another question, how can I determin what slider was picked, what I mean is when I do the call back how can I send back just the value of the one handle?
Anyhow thanks for any help