Rating (type:'rating')
Open in new window

Minimum Rate Description: (default is empty)

var q = survey.getQuestionByName('satisfaction');
q.mininumRateDescription = yourvalue;
survey.render();

Maximum Rate Description: (default is empty) .

var q = survey.getQuestionByName('satisfaction');
q.maximumRateDescription = yourvalue;
survey.render();

Rate values: (default is empty)

var q = survey.getQuestionByName('satisfaction');
q.rateValues = yourvalue;
survey.render();


Survey.Survey.cssType = "bootstrap";
Survey.defaultBootstrapCss.navigationButton = "btn btn-green";

window.survey = new Survey.Model({questions:[    
    { type: "rating", name: "satisfaction", title: "How satisfied are you with the Product?", 
        mininumRateDescription: "Not Satisfied", maximumRateDescription: "Completely satisfied" }]
});
survey.onComplete.add(function(result) {
	document.querySelector('#surveyResult').innerHTML = "result: " + JSON.stringify(result.data);
});


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


<!DOCTYPE html>
<html>

<head>
    <title>Welcome to JQuery</title>
    <script src="https://unpkg.com/jquery"></script>
    
    <script src="https://surveyjs.azureedge.net/0.12.22/survey.jquery.js"></script>
    
    
    <link rel="stylesheet" href="https://unpkg.com/bootstrap@3.3.7/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="./index.css">
</head>

<body>
    <div id="surveyElement"></div>
    <div id="surveyResult"></div>
    <script src="./index.js"></script>
</body>

</html>

.btn-green {
  background-color: #1ab394;
  color: #fff;
  border-radius: 3px;
}

.btn-green:hover, .btn-green:focus {
    background-color: #18a689;
    color: #fff;
}

.panel-footer {
    text-align: right;
    background-color: #fff;
}