placeholder issue with jQuery Validate

前端 未结 9 713
时光说笑
时光说笑 2020-12-31 19:10

I noticed today that we have an issue with jquery Validate when used in conjunction with placeholder text.

Example:

&
9条回答
  •  暖寄归人
    2020-12-31 19:50

    I used a trick, if you focus on the field, the placeholder appears.. The following code will focus and blur all of the input fields.

    function tabFields(){
        $('#form input[type="text"]').each(function(){
            $(this).focus().blur();
        });
    }
    

提交回复
热议问题