I'm using the boostrapvalidator plugin This here since there are several, well what I want is to add an input that is within a table in datatable here is the problem that the input is added from another form and by which first I look for the input and then add it within the validator as follows
"drawCallback": function (settings) {
let tbl = this.api();
let input = $(tbl.rows().nodes()).find('[id^=cantidad]').attr('name');
$('#FrmOrdendeCompra').bootstrapValidator('addField', "'" + input + "'", {
validators: {
notEmpty: {
message: 'Prueba '
}
}
});
}
I do the test to see if it validates me and nothing happens help please