title: jQuery & JavaScript Excercise: Adding Values On Condition
body: <p>How do you make it calculate using JavaScript/jQuery based on condition:</p>
  
  <ul>
  <li>on radio button 'change' event.</li>
  <li>if user clicks "Yes" or "N/A", the value of text boxes with default values next to it will be added and reflected in Total</li>
  </ul>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;form&gt;
      &lt;fieldset&gt;
          &lt;input type="radio" name="remark[]" value="Yes" class="answer"&gt;Yes
          &lt;input type="radio" name="remark[]" value="No" class="answer"&gt;No
          &lt;input type="radio" name="remark[]" class="answer"&gt;N/A
          &lt;input type="text" name="point1" class="score" value="3"&gt;
      &lt;/fieldset&gt;
      &lt;fieldset&gt;
          &lt;input type="radio" name="remark[]" value="Yes" class="answer"&gt;Yes
          &lt;input type="radio" name="remark[]" value="No" class="answer"&gt;No
          &lt;input type="radio" name="remark[]" class="answer"&gt;N/A
          &lt;input type="text" name="point2" class="score" value="2"&gt;
      &lt;/fieldset&gt;
      Total&lt;input type="text" name="total" class="result"&gt;
  &lt;/form&gt;
  </code></pre>