title: Insert checkbox selected value to textbox in asp.net?
body: <p>I have 5 asp.net checkboxes in webform ...i want as the checkboxes checked and unchecked then its text will be added in textbox i.e if checkbox 1 and checkbox9 will be checked then in textbox the text will be 1,9 and if checkbox1 is unchecked then the textbox text will be 9</p>
  
  <p>How to do this using javascript, vb.net or Jquery</p>
  
  <p>I dont have any idea how to do it ...</p>
  
  <p>CODE I FOUND :</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function Test(control, value) {
       var str = '';
       $('#&lt;%=txtTest.ClientID %&gt; :checked').each(function() {
         str = str + ', ' $(this).val();
       });
       $('#&lt;%=txtTest.ClientID %&gt;').val(str);
  
  &lt;/script&gt;
  </code></pre>
  
  <p>ITS NOT WORKING ...</p>