title: select only one checkbox and add class for the checked input
body: <p>I have a list of checkbox and want to select the only one check box and add the class for the checkbox input and select another checkbox remove that class from the existing checkbox</p>
  
  <pre><code> $('input.myclass').click(function () 
    {
          var id =  $(this).attr('id').replace('image-','');
          $('input.myclass:checked').not(this).removeAttr('checked');
  
          var sFilter = "";
          $('input.myclass[type=checkbox]').each(function () {
              sFilter = sFilter + (this.checked ? $(this).val() : "");
          });
      check();    
      });
  
      function check(){
      var a = $('input:checkbox[name=cover_image]:checked').val();
      alert(a);
      }
  </code></pre>
  
  <p>I want to select only one checkbox and class for the checked checkbox if that checkbox not checked then remove the class for that</p>