jqbootstrapvalidation - Enable submit button in Bootstrap validator -
I am using the bootstrap validator and the problem I have is that I submit all the values after the values are submitted Unable to do this
$ (document) .ready (function () {$ ('# ans_frm'). BootstrapValidator ({feedbackIcons: {Legal: 'Glyphicon Glyphicon- Valid: 'glyphicon glyphicon-refresh'}, submit button: 'button [type = "submit", invalid:' glyphicon glyphicon - remove ', valid: ], Field: {ans: {group: '.col-md-8', validators: {stringLength: {min: 3, max: 100, message: 'Answer must be greater than 2 and more than 100 characters long'} , No, Empty: {Message: 'Answer should not be empty'}}}}}. ('Condition.field.bv', function (e, data) {disableSubmitButtons (wrong);}})}};
submit button .on ('error.field .bv') to you
and enable it back to on ('status.field.bv')
.
and you should use data.bv .disableSubmitButtons ()
method!
Can you try this?
$ (document) .ready (function () {$ ('# ans_frm') .bootstrapValidator ({feedbackImons: {valid: 'glyphicon glyphicon-ok', invalid: 'glyphicon glyphicon- Remove ', validating:' glyphicon glyphicon-refresh '}, submit button:' button [type = "submit"] ', field: {ans: {group:' .col-md-8 ', validators: {stringLength : {Min: 3, max: 100, Message: 'Answer must be greater than 2 and more than 100 characters long}}, no empty: {Message:' Answer should not be empty '}}}}}. Error.field.bv ', function (e, data) {submit data on disabled errors} {data.bv.disableSubmitButtons}}}. (' Status.field.bv ', function (e, data) {Data.bv.disableSubmitB Uttons (wrong); // submit button on valid}});});
Comments
Post a Comment