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

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

4条回答
  •  不知归路
    2020-12-02 07:56

    You can use setCustomValidity function when oninvalid event occurs.

    Like below:-

    
    
    

    Update:-

    To clear the message once you start entering use oninput="setCustomValidity('') attribute to clear the message.

    
    

提交回复
热议问题