jQuery to check all by partial name
<p>I've seen similar solutions posted that match my request, but nothing exactly as I'd like. I am very new to jQuery and do not know it well enough to figure out how to take the bits and pieces from each solution to make it work for me. </p>

<p>I need a function that will check all my checkboxes within my .NET grid and not the other checkboxes on the page. An example of the checkboxes that need to be checked is: </p>

<pre><code>&lt;input id="GridView2_ctl09_chkSelect" type="checkbox" name="GridView2$ctl09$chkSelect" /&gt;
</code></pre>

<p>I need the jQuery function to check all checkboxes with "chkSelect" at the end of the checkbox ID. </p>

<p>This is my current "check all" checkbox: </p>

<pre><code>&lt;input id="GridView2_ctl01_cbSelectAll" type="checkbox" name="GridView2$ctl01$cbSelectAll" onclick="selectAll(this);" /&gt;
</code></pre>

<p>Thanks!</p>

<p>Trevor</p>
