Disable the all input fields with unique (ID) like numbers in table :
$(“#table_id input[type=’text’][id=” + id + “]”).prop({
disabled: true
});
Disable the all Select fields with unique (ID) like numbers in table :
$(“select[id=” + id + “]”).prop({
disabled: true
});
Change the placeholder text in input field of table by unique (ID) like numbers :
$(“#table_user_lists input[type=’text’][name=’user_name’][id=” + id + “]”).attr(‘placeholder’, user_name);
jquery change function by name attribute of array:
$(‘input[name =”name[]”]’).change(function () { });
Enable the select of unique (ID) on each:
$(“#table_id *[id]”).each(function () {
if ($(this).attr(‘id’) == id) {
$(this).prop(‘disabled’, false);
}
});
Leave a comment