public boolean isSelected(String id) {
        for (JQMCheckbox box : checks) {
            if (id.equals(box.getId()))
                return box.isChecked();
        }
        return false;
    }
public boolean isSelected ( String id ) { for ( JQMCheckbox box : checks ) { if ( id . equals ( box . getId ( ) ) ) return box . isChecked ( ) ; } return false ; }
Returns true if the checkbox with the given id is selected.

@param id - the id of the checkbox to test