Working Checkbox check--good one

by cory a

HTML

<table id="one">
    <tr>
        <th></th>
        <th>ID</th>
        <th>Name</th>
        <th>System</th>
    </tr>
    <tbody>
        <tr>
            <td>
                <input type="checkbox" />
            </td>
            <td>12</td>
            <td>Sam</td>
            <td>FSS</td>
        </tr>
        <tr>
            <td>
                <input type="checkbox" />
            </td>
            <td>87</td>
            <td>Harry</td>
            <td>MSS</td>
        </tr>
    </tbody>
</table>
<br>
<hr>
<br>
<button id="add">Add</button>

JavaScript

var stringresult = '';
$('#add').on('click', function () {
    $('input:checked').each(function (i) {
        i++;
        $this = $(this).closest("tr");
        var one = $this.find('td').eq(i).text();
        var two = $this.find('td').eq(i + 1).text();
        alert(one + ' ' + two);
    });
});