Gets or sets the value of the slider.
Parameters
Name | Type | Description |
---|---|---|
value | {string} | The value that needs to be selected. |
Examples
Get
<button class="gj-button-md" onclick="alert($slider.value())">Get Value</button>
<hr/>
<input id="slider" width="300" />
<script>
var $slider = $('#slider').slider();
</script>
Set
<button class="gj-button-md" onclick="$slider.value(77)">Set Value</button>
<hr/>
<input id="slider" width="300" />
<script>
var $slider = $('#slider').slider();
</script>