Change the input field name of the checked check box row
Note: Type field may or may not exist in every row.
Like if name[] and type[] fields exists,change both name to name1[] and type1[]. or just change the name of name[] field if type[] does not exists.
$(document).ready(function() {
$(".click1").on('change', function() {
if($(this).is(":checked")) {
alert('checked')
}
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<li id="row_3">
<div class="col-md-6">
<input type="text" name="name[]">
<input type="text" name="type[]">
<input type="checkbox" name="click" class="click1">
</div>
</div>
</li>