I have below table :
.
.
.
<td >
<input type="text" class="car_color" >
<input type="hidden" class="number_car" name="my_timelist[times][]" value="0">
</td>
<td >
<input type="text" class="car_color" >
<input type="hidden" class="number_car" name="my_timelist[times][]" value="0">
</td>
<td >
<input type="text" class="car_color" >
<input type="hidden" class="number_car" name="my_timelist[times][]" value="0">
</td>
.
.
.
I want set value on input with class name class="number_car"
by jquery with below code, But this effect on all inputs(have the class name). But I want effect value just on same td.
` $(‘.car_color’).change(function(){
let datetime = $(this).val();
$('.number_car').val( 123456);
});
`
How can I fix?