title: Check box with radiobutton functionality
body: <pre><code>&lt;style&gt;
      .chb
      {
          width: 30px;
      }
  &lt;/style&gt;
  
  &lt;script type="text/javascript" src="jquery-1.5.2.js"&gt;&lt;/script&gt;
  &lt;script&gt;
      $(".chb").each(function() {
          $(this).change(function() {
              $(".chb").attr('checked',false);
              $(this).attr('checked',true);
          });
      });
  &lt;/script&gt;
  
  &lt;form action="demo_form.asp"&gt;
      &lt;input type="checkbox" name="vehicle" value="Bike" class ="chb"&gt; I have a bike&lt;br&gt;
      &lt;input type="checkbox" name="vehicle" value="Car" checked="checked" class="chb"&gt; I have a car &lt;br&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>The above coding contains two check boxes with radio button functionality. This works fine. But how to do this with javascript without using the jquery. How to achieve this. </p>