Add an element dynamically to boostrapvalidator

0

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

    
asked by Jonathan Cunza 08.08.2018 в 19:58
source

0 answers