[jQuery] JQuery $ function

[jQuery] JQuery $ function


How does this work...(This actually does what I want it to, but I am
amazed that JQuery can figure out how to select from an array)
function get_selected_rows()
{
    var selected_rows = new Array();
    $("#sortable_table tbody :checkbox:checked").each(function()
    {
        selected_rows.push($(this).parent().parent());
    });
    return selected_rows;
}
$(get_selected_rows()).parent().parent().remove();