I have one input field by default in html form. If user want to add more they can add more input field. I have done this adding more input field feature by jquery. Now I want to get new added field id and validate those input field using jquery. But jquery is not getting those added id. here is my form normal input field
<td> <input readonly type="text" name="student_id[]" placeholder="{{ $details->batch_id }}" value="{{ $details->batch_id}}" class="form-control"> </td>
Now here is my dynamically adding input field code
var tr='<tr>'+
'<td> <input type="text" name="student_id[]" class="form-control" id="addedstudent-id"> </td>'+
'</tr>';
Here is my jquery code to get this newly added input field
$('#addedstudent-id').focusout(function(){
console.log('d');
});
But it is not showing anything in console
. Not even any error.