<form>
<div class="col-md-3">
<div class="form-group">
<select name="group_code" class="form-control select2" style="width: 100%;">
<option selected="">All groups</option>
<option value="" selected=""></option>
<option value="" selected=""></option>
<option value="fwf">fwf</option>
<option value="" selected=""></option>
<option value="3320">3320</option>
<option value="3309">3309</option>
<option value="5911">5911</option>
</select>
</div>
</div>
...
<div class="box-footer">
<button type="submit" class="btn btn-primary">Submit</button>
<button type="reset" class="btn btn-default" onclick="$('input, .box-body
select').val('').removeAttr('selected').removeAttr('checked')">Reset</button>
</div>
</form>
document.querySelector('input').setAttribute('readonly','readonly');
<div class="filter">
Filter by:
<div *ngFor="let criterion of filterConfig | keyvalue">
<nb-select placeholder="Default" status="danger">
<nb-option [value]="criterion.key">{{criterion.key}}</nb-option>
</nb-select>
<nb-select placeholder="Default" status="danger">
<nb-option [value]="criterion.value">{{criterion.value}}</nb-option>
</nb-select>
</div>
</div>
<input type="checkbox" required>
и будет счастье.document.querySelector('form').addEventListener('submit',function(e){
e.preventDefault();
this.querySelectorAll('input[type="checkbox"]:checked').length?console.log('valid'):console.log('not valid');
});
let numArr = [];
function rangeOfNumbers(startNum, endNum) {
if (startNum === endNum ) {
numArr.push(endNum)
return numArr;
} else {
numArr.push(endNum)
return rangeOfNumbers(startNum, endNum-1)
}
};