Please i need help..
@foreach
<input id="mar1bags" class="form-control" name="mar1bags" value="">
@endforeach
I am using foreach loop to get some data and also this input field is also inside for me to input data.
But the problem now is i am unable to use GetelementbyID to get the values in javascript. it returns only for the first input field, but the others don't get.
I get this error in my console when i try to submit to javascript function
[DOM] Found 3 elements with non-unique id #mar1bags: