jQuery text() with replace() doesn't replace the text

前端 未结 5 436
甜味超标
甜味超标 2021-01-19 19:45

I have the following H2:

Password reset instructions have been sent to *|RESETPASSWORDEMAIL|*

I

5条回答
  •  一整个雨季
    2021-01-19 20:21

    You can even simply do this

     

    $('h2#resetPWSuccess').text('Password reset instructions have been sent to '+emailaddress).show();

提交回复
热议问题