Slight issue with a jquery slider

I've got an issue with a slider that I suspect needs one line of code to sort out:



<meta charset="utf-8" />
<title>jQuery UI Slider - Range with fixed minimum</title>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />


<script>



$(function() {
$( "#slider-range-1" ).slider({
range: "min",
value: 10,
min: 10,
max: 30,
slide: function( event, ui ) {
$( "#amount" ).val( ui.value );
}
});
$( "#amount" ).val( $( "#slider-range-1" ).slider( "value" ) );
});



</script>
<p>
<label for="amount">€ </label>
<font size="3" style="border: 0; color: #328FC4; font-weight: bold; width: 50px;"></font><input type="numeric" name="TMCJ5A_Var1" id="amount" style="border: 0; color: #328FC4; font-weight: bold; width: 50px;" />
</p>


<div id="slider-range-1"></div>


When a respondent hits the next button the default option is recorded. We can't have this happen as it will skew the result taking speeders into account.

Is there a way to set a default value to be 0 while the slider appears to be set to 10? That way I can write a bit of code to tell the respondent to interact with the bar?

Ta

Resolved
1 reply