Bootstrap验证器在引导模式中不起作用(模态在表中)

时间:2015-06-25 14:22:13

标签: javascript jquery twitter-bootstrap twitter-bootstrap-3

I am using bootstrap3. I am trying to use bootstrap validator for forms in bootstrap modal window. My modal is inside a table. I have added all attributes required for validator but it is still not working. Please advice.(Hover my description to check out the image)

我的javascript代码:

$(".category_form").bootstrapValidator({
    feedbackIcons: {
        valid: 'glyphicon glyphicon-ok',
        invalid: 'glyphicon glyphicon-remove',
        validating: 'glyphicon glyphicon-refresh'
    },
    fields: {
        category_valid: {
            validators: {
                notEmpty: {
                    message: "This field is required",
                }
            }
        },
        category_name: {
            validators: {
                notEmpty: {
                    message: "This field is required",
                }
            }
        },

    }
});

HTML HERE with php: here is my html with php

0 个答案:

没有答案