Bootstrap Slider

Custom widget: Bootstrap Slider Third-party libraries: Bootstrap Slider MIT

                        



var json = {
  elements: [
    {
      "type": "bootstrapslider",
      "name": "bootstrapslider-widget",
      "step": 50,
      "rangeMin": 100,
      "rangeMax": 1000
    }
  ]
};

window.survey = new Survey.Model(json);


    survey.onComplete.add(function(result) {
        document.querySelector('#surveyResult').textContent =
            "Result JSON:\n" + JSON.stringify(result.data, null, 3);
    });


$("#surveyElement").Survey({ 
    model: survey 
});


                    
<!DOCTYPE html>
<html>
<head>
    <title>Custom widget: Bootstrap Slider, jQuery Survey Library Example</title>


    <meta name="viewport" content="width=device-width, initial-scale=1">
    <script src="https://unpkg.com/jquery"></script>
<script src="https://surveyjs.azureedge.net/1.1.5/survey.jquery.js"></script>
<link href="https://surveyjs.azureedge.net/1.1.5/survey.css" type="text/css" rel="stylesheet" />
    <link rel="stylesheet" href="./index.css">
<link rel="stylesheet" href="https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/10.0.0/bootstrap-slider.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-slider/10.0.0/css/bootstrap-slider.css" rel="stylesheet" />
    <script src="https://surveyjs.azureedge.net/1.1.5/surveyjs-widgets.js"></script>

</head>
<body>
                <div id="surveyElement">
            </div>
    <div id="surveyResult"></div>

<script type="text/javascript" src="./index.js"></script>

</body>
</html>