Я строю систему оценки персонала, где пользователям задают 10 вопросов для оценки сотрудника. Как то так 
Каждой звезде присваивается значение от 1 до 5. В настоящее время я получаю каждое значение, но как мне назначить каждое значение переменной, например: var questionOne = 2; var questionTwo = 3;
Это мой код:
<h4>Score Ola using our rating form below.</h4>
<p>Job Title: Nanny</p>
<p style="color: red; font-size: 12px;">
Note: Questions are selected based on job title. We are constantly reviewing the list of job specific questions, please assist by recommending questions you would like to add to our job specific questionaire <a href="#">here</a>
</p>
@foreach (var question in Model.AppraisalQuestions)
{
<p>@question.QuestionDescription</p>
<div class="row lead evaluation">
<div id="colorstar" class="starrr ratable"></div>
<span id="count">0</span> star(s) - <span id="meaning"> </span>
</div><br />
}
До сих пор Javascript:
$(document).ready(function() {
var correspondence = ["", "Poor", "Below Expectation", "Above Expectation", "Good", "Excelent" ];
$('.ratable').on('starrr:change', function(e, value) {
$(this).closest('.evaluation').children('#count').html(value);
$(this).closest('.evaluation').children('#meaning').html(correspondence[value]);
var currentval = $(this).closest('.evaluation').children('#count').html();
var target = $(this).closest('.evaluation').children('.indicators');
target.css("color","black");
target.children('.rateval').val(currentval);
target.children('#textwr').html(' ');
alert(value);
});
Я хочу сохранить каждый счет в базе данных. Любая помощь будет высоко оценена. Благодаря