Return Multiple CheckBox Values if Checked in jQuery
<p>I have multiple checkbox in my page. i want to retrieve its values if checked.</p>

<p>Here is HTML Code..</p>

<pre><code>&lt;input name="ctl1189" type="checkbox" id="chkTicket_189310" class=" chkTicket" value="189310"&gt;

&lt;input name="ctl1190" type="checkbox" id="chkTicket_189311" class=" chkTicket" value="189311"&gt;
</code></pre>

<p>And So on..</p>

<p>Javascript Code:</p>

<pre><code>function updateTicketAction() {
    var allUpdatedVendorTickets = $('.chkTicket').filter(function() { return this.value != $input.is(':unchecked'); });
    var sFinalUpdateList = '';

    allUpdatedVendorTickets.each(function() {
        var ids = $(this).attr('id').split('_')[1];

        sFinalUpdateList += ((sFinalUpdateList == '') ? '' : '|') + ids + ',' + $(this).val();
    });
    alert(sFinalUpdateList);
}
</code></pre>
