title: Why my checkbox on change is not working on js file, but working on console?
body: <p>I am trying to get the selected checkbox text when on change. </p>
  
  <p>Here is my aspx code</p>
  
  <pre><code>&lt;ul class="multiselect-container dropdown-menu"&gt;
      &lt;li class=""&gt;
          &lt;a tabindex="0"&gt;
              &lt;label class="checkbox"&gt;
                  &lt;input type="checkbox" value="1001"&gt; 1001&lt;/label&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class=""&gt;
          &lt;a tabindex="0"&gt;
              &lt;label class="checkbox"&gt;
                  &lt;input type="checkbox" value="1111"&gt; 1111&lt;/label&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class=""&gt;
          &lt;a tabindex="0"&gt;
              &lt;label class="checkbox"&gt;
                  &lt;input type="checkbox" value="2222"&gt; 2222&lt;/label&gt;
          &lt;/a&gt;
      &lt;/li&gt;
      &lt;li class=""&gt;
          &lt;a tabindex="0"&gt;
              &lt;label class="checkbox"&gt;
                  &lt;input type="checkbox" value="3333"&gt; 3333&lt;/label&gt;
          &lt;/a&gt;
      &lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>Here is my Jquery code what tried</p>
  
  <pre><code>$('.multiselect-container :checkbox').change(function () {
      $('.multiselect-container input:checkbox').each(function () {
          var sThisVal = (this.checked ? $(this).val() : "");
          alert(sThisVal);
      });
      alert('working');
  });
  </code></pre>
  
  <p><strong>Note</strong></p>
  
  <blockquote>
    <p>When I run on <code>js</code> file, it doesn't show the alert. but when i tried on console. it is working...</p>
  </blockquote>
  
  <pre><code>Can you tell me answer with reason why it is not working with js file?
  </code></pre>