I have the following H2:
Password reset instructions have been sent to *|RESETPASSWORDEMAIL|*
I
Try this
$("#resetPWSuccess").text( $('#resetPWSuccess').text(). replace('*|RESETPASSWORDEMAIL|*', $("#EmailID").val()))