JavaScript Slider

Invoke the focus method of the jqxSlider. Author: http://jqwidgets.com

by jqwidgets

HTML

<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id="jqxSlider"></div>
<div>
    <input style="margin-top: 20px;" type="button" id='jqxButton' value="Focus" />
</div>

JavaScript

$('#jqxSlider').jqxSlider({
     theme: 'energyblue'
 });
 $("#jqxButton").jqxButton({
     height: '30px',
     width: '150px',
     theme: 'energyblue'

 });
 $('#jqxButton').on('click', function () {
  $('#jqxSlider').jqxSlider('focus');
 });