title: jquery: remove the selected value if checkbox is unchecked
body: <p>I'm displaying list of items with checkbox, if checkbox is checked the value of selected item is displayed in different div.</p>
  
  <p>Now, if I uncheck the checkbox I should remove the items displayed in the div.
  Please help me how to fix this?</p>
  
  <pre><code>$('input[name="selectedItems1"]').click(function(){
              if (this.checked) {                   
  
              }else{                    
                  //what should go here
              }
          });
  </code></pre>