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

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

I have the following H2:

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

I

5条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-19 20:06

    I'd suggest a different approach:

    Password reset instructions have been sent to

    And the corresponding js:

    $('#resetPWemail').text(emailAddress);
    $('#resetPWSuccess').show();
    

提交回复
热议问题