I want to pass the text values in the div('111'...'555') along with the values in the input to the controller. I was thinking of wrapping it up in a Json. But don't know how to implement it properly. Anyone has any advise?
here is the code,
<div name="question" class="panel-body">
111
<label class="options">
<span class="check-box"></span>
<input type="radio" id="rating-1" name="rating" value="@model.value" />
</label>
</div>
<div name="question" class="panel-body">
222
<label class="options">
<span class="check-box"></span>
<input type="radio" id="rating-2" name="rating" value="@model.value" />
</label>
</div>
<div name="question" class="panel-body">
333
<label class="options">
<span class="check-box"></span>
<input type="radio" id="rating-3" name="rating" value="@model.value" />
</label>
</div>
<div name="question" class="panel-body">
444
<label class="options">
<span class="check-box"></span>
<input type="radio" id="rating-4" name="rating" value="@model.value" />
</label>
</div>
Thanks!