jQuery override default validation error message display (Css) Popup/Tooltip like

前端 未结 7 1257
既然无缘
既然无缘 2020-11-28 17:16

I\'m trying to over ride the default error message label with a div instead of a label. I have looked at this post as well and get how to do it but my limitations with CSS a

7条回答
  •  感动是毒
    2020-11-28 18:15

    That answer really helped me, in my case i had to filter some elements out and have special aligment on their error div,

    errorPlacement:function(error,element) {
        if (element.attr("id") == "special_element") {
            // special align
        } else { // default error scheme
            error.insertAfter(element);
        }
    }
    

提交回复
热议问题