I have this form here
and I want to prevent submit the form as long as the inputs value is not equal to 100, In other words, to complete and save, the values of all inputs must be equal to 100
How to do this given that the inputs are created by DOM as the following picture :
url: '/getProjectStandards/' + standid,
type: "get",
async: true,
dataType: "json",
success: function (data2) {
console.log(data2);
$.each(data2, function (key, value) {
$('#inner_sugg').append('<div class="row mt-1">' +
'<div class="col-6">' +
'<p class="">' + value['stand_name'] + '</p>' +
'</div>' +
'<div class="col-6">' +
'<input type="hidden" class="form-control col-3" name="stand_id[]" value="' + value['id'] + '">' +
'<input type="number" min="0" class="form-control col-3 sugg_weight" name="sugg_weight[]" required">' +
'</div>' +
'</div>'
);
});
});
how to get all the inputs value on submit and validate that they are equal to 100 ?