I have two input field :
<input type="text" class="form-control input-td" name="getmark[]" id="getMark_<?php echo $i++?>" required>
<input type="text" class="form-control input-td" name="mcq[]" id="mcq_<?php echo $i++?>" required>
I am trying :
$('input[id^="getMark_"]','input[id^="mcq_"]').on('change', function() {
var get_mark = this.value;
var mcq = this.value;
});
i am not sure how can call $('input[id^="getMark_"]','input[id^="mcq_")
How can call two input filed .
getMark & mcqinput field .this student pass or fail of this subject