Get Checked Checkbox values
<p>I have table with check boxes in it.and the CSS for the check box is GridCheckBox, I want to read the check boxes tool tip into an array with , separated.</p>

<p>I am using this function. But this not getting the checked items. but getting the unchecked items correctly.</p>

<p>This works well</p>

<pre><code>var titles = [];
$('#ListGrid .GridCheckBox').each(function() {
    if ($(this).attr('title')) {
        titles.push($(this).attr('title'));
    }
});
</code></pre>

<p>And this not working(Checked items)</p>

<pre><code>var titles = [];
$('#ListGrid .GridCheckBox:checked').each(function() {
    if ($(this).attr('title')) {
        titles.push($(this).attr('title'));
    }
});
</code></pre>
