How to change the default message of the required field in the popover of form-control in bootstrap?

前端 未结 4 958
别跟我提以往
别跟我提以往 2020-12-02 07:11
 

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-02 07:47

    And for all input and select:

    $("input[required], select[required]").attr("oninvalid", "this.setCustomValidity('Required!')");
    $("input[required], select[required]").attr("oninput", "setCustomValidity('')");
    

提交回复
热议问题