Let me provide an overview of what has been implemented so far: When a user selects an answer in radio buttons and clicks on "Check Answer", the system displays either "Correct" (in green) or "Incorrect" (in red) in the first answer field. Additionally, the actual correct answer is shown in the "Solution" field (in green). However, there is an issue where the Solution field is displayed even when the answer is incorrect.
To see a sample of this implementation, please follow this link: https://codepen.io/anon/pen/PRoLXo
<div data-ng-app="epubApp">
<div data-ng-controller="checkBoxFillinCtrl" data-ng-init="checkBoxData='p50';fillinBlankData='p50';">
<div class="quiz" id="quiz_1">
<div class="question">
<h4>1. A 6 m ladder of 20 kg rests with upper end on a smooth wall and lower end on a rough horizontal ground as shown below. Determine the minimum coefficient of friction so that the ladder does not slip?</h4><p class="qimage"><img src="../images/22.png" alt="images"/></p>
</div>
<div class="quiz-object multiple-choice">
<div class="acontainer" style="margin:0em 1px 2px 1px;border:0px solid;">
<div id="check_box_table" >
<table id="q_table" class="f1" data-ng-class="{'check_box_disabled':inputDisabled}">
<tbody >
<tr>
<td style="border:0px solid black;"><span class="check_box cElement" data-check-box="cb[0]" data-quest-index="0" data-check-index="0"></span></td>
<td >0.14</td>
</tr>
<tr>
<td style="border:0px solid black;"><span class="check_box cElement" data-check-box="cb[0]" data-quest-index="0" data-check-index="1"></span></td>
<td >0.29</td>
</tr>
<tr>
<td style="border:0px solid black;"><span class="check_box cElement" data-check-box="cb[0]" data-quest-index="0" data-check-index="2"></span></td>
<td >0.19</td>
</tr>
<tr>
<td style="border:0px solid black;"><span class="check_box cElement" data-check-box="cb[0]" data-quest-index="0" data-check-index="3"></span></td>
<td >0.35</td>
</tr>
</tbody>
</table>
</div>
<div id="correct1" style="border:1px solid gray;border-radius:5px;color:#616360;background-color:#F3F3F3;margin:1em 0em 2em 1em;font-size:100%;padding:10px;width:80%;">
<b>Correct or Incorrect?</b>
<!-- Replace each correct text in the below paragraphs -->
<td><span class="result" data-ng-class="cb[0].resultClass"></span></td>
</div>
<div id="feedback1" style="border:1px solid gray;border-radius:5px;color:#616360;background-color:#F3F3F3;margin:0em 0em 2em 1em;font-size:100%;padding:10px;width:80%;">
<b>Solution</b>
<!-- Replace each feedback in the below paragraphs -->
<p class="feedback-text">
</p>
<p data-ng-show="answerVisible" class="feedback-text">
Consider the FBD of the ladder<br/>
<br/>
A = Normal reaction at lower end<br/>
B = Normal reaction at upper end<br/>
f = frictional force acting at horizontal surface<br/>
W = weight of ladder = 20 * 10 = 200 N<br/>
Considering horizontal and vertical equilibrium<br/>
f = B<br/>
A = W <br/>
So A = 200 N<br/>
Taking moment about lower end<br/>
B * 6 * sin 60° - W * 6/2 * cos 60° = 0<br/>
B * 6 * √3 /2 = 200 * 3 * ½ = 300<br/>
B * 3 * √3 = 300<br/>
B = 100/√3 = 57.74 N<br/>
f = µ * N = B<br/>
µ = coefficient of friction <br/>
N = normal reaction = A = W = 200 N<br/>
f = µ * 200 = 57.74<br/>
µ = 57.74/200 = 0.29
</p>
<p class="feedback-text">
</p>
<p class="feedback-text">
</p>
</div>
</div>
</div>
<div class="submitcontainer">
<p style="text-align:left;">
<div class="submit1" style="z-index:2;">
<button class="resetBtn check" style="font-family: Arial, Helvetica, sans-serif;font-weight: bold;color:white;background-color:#616360;font-size:100%;padding:5px;margin-top:1em;margin-right:1em;" data-ng-show="resetVisible" data-ng-click="onReset()">RESET</button>
<button class="submitBtn reset" id="reset_1" style="font-family: Arial, Helvetica, sans-serif;font-weight: bold;color:white;background-color:#616360;font-size:100%;padding:5px;margin-top:1em;margin-right:1em;" data-ng-show="submitVisible" data-ng-click="onSubmit()">Check Answer</button>
</div>
</p>
</div>
</div>
</div>
</div>
Any insights or samples you can provide would be greatly appreciated. Thank you for your help.