Widgets > wijslider > wijslider Tutorial > wijslider Step 2 of 3: Initializing the Widget |
In the previous step, you created the slider element. In this step, you will add the jQuery script that initializes the widget.
After the closing <div>
tag, add the following script.
<script id="scriptInit" type="text/javascript">
$(document).ready(function () {
$("#slider").wijslider({ orientation: "horizontal", range: false, min: 0, max: 100, step: 2, values: [25] });
});
</script>