title: jQuery IF option selected
body: <p>I am trying to check with jQuery if the select option with value = 1 is selected then add class to some elements. But something don't work. Can please some one look at the code?</p>
  
  <p>My code : </p>
  
  <pre><code>Reservation &lt;br/&gt;
  &lt;select id="rReservation" name="rReservation" class=""&gt;
                                  &lt;option value="0"&gt;Maybe&lt;/option&gt;
                                  &lt;option value="1"&gt;Sure&lt;/option&gt;
  &lt;/select&gt;
  &lt;hr/&gt;
  Name &lt;br/&gt;
  &lt;input type="text" name="rCardUser" class="mRequired" /&gt;
  
  &lt;hr/&gt;
  Card&lt;br/&gt;
  &lt;input type="text" name="rCardNrr" class="mRequired" /&gt;
  </code></pre>
  
  <p>jQuery </p>
  
  <pre><code>if ($("#rReservation").val() == "1") {
     $('.mRequired').addClass('required');
  } else {
     $('.mRequired').removeClass('required');
  }
  </code></pre>
  
  <p><strong>LIVE example at fiddle - <a href="http://jsfiddle.net/C7Gg3/">http://jsfiddle.net/C7Gg3/</a></strong></p>