I have this below code where i need to check if first two checkbox are checked or not.
I need to check against their id's.
Like how to check if i the first two checkbox are checked or not.
<input type="checkbox" name="check1" id="check1id" tabindex="1" value="Test" />
<input type="checkbox" name="check2" id="check2id" tabindex="2" value="Test" />
<input type="checkbox" name="check3" id="check3id" tabindex="3" value="Test" />
var boxes = $('.checkbox input');
                if(boxes.length > 0) {
                    if( $(':checkbox:checked').length < 1) {
                        if($("#error-select").length == 0){
                            $("#error-checkbox").show();
                        }
                        return false;
                    }
                    else{
                        $("#error-checkbox").hide();
                    }
How to do this.
Regards
 
     
    