Jquery get selected checkboxes
<p>Hi I'd like to get the list of selected checkboxes ina page, actually what I really need is th get the text of the element next to the checkbox which is a html element <code>&lt;li&gt;</code>
the code is below and its not working</p>

<p>Here is my current jQuery:</p>

<pre><code>$(document).ready(function () {
  $('#target').click(function () {
    alert("in");
    var checkValues = [];
    $('input[name=checkboxlist]:checked').each(function() {
      alert($(this)val());
      checkValues.push($(this)val());
    });
  });
});
</code></pre>

<p>Here is the HTML:</p>

<pre><code>&lt;ul id="7b1fe2bd-1b26-4185-8cd9-aec10e652a70"&gt;
 &lt;li&gt;Structured Products&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
 &lt;li&gt;Global FID
 &lt;ul&gt;
  &lt;li&gt;PowerPoint Presentations&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
  &lt;li&gt;Global Deck
  &lt;ul&gt;
   &lt;li&gt;Test1&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;

   &lt;li&gt;Test2&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
   &lt;li&gt;Test3&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;

  &lt;/ul&gt;
  &lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
  &lt;li&gt;Credit Default Swaps Position
  &lt;ul&gt;
   &lt;li&gt;Test4&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;

   &lt;li&gt;Test5&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;

  &lt;/ul&gt;
  &lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
  &lt;li&gt;Thought Leadership&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
  &lt;li&gt;Fixed Income Perspectives&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
  &lt;li&gt;Public Policy Information and Regulatory&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;

  &lt;li&gt;Regional FID&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;

 &lt;/ul&gt;
 &lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
 &lt;li&gt;Global Rates&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
 &lt;li&gt;Global Credit Products&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
 &lt;li&gt;FX&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;

 &lt;li&gt;Emerging Markets&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
 &lt;li&gt;Commodities&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
 &lt;li&gt;testcat&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;
 &lt;li&gt;testcat&lt;input type="checkbox" name="checkboxlist"&lt;/li&gt;

&lt;/ul&gt;
</code></pre>
