<div id="inputs">
<input class="my-input" type="text" name="name_1">
<input class="my-input" type="text" name="name_2">
<input class="my-input" type="text" name="name_3">
...
<input class="my-input" type="text" name="name_N">
</div>
var id = null;
$('#inputs').on('click','.my-input',function() {
id = $(this).val();
});
<?=$form->field($model_video_form,'name',['id'=>'field_id'])->label('..')?>