How to change “Reset Password” text on submit button

I’ve added

jQuery( document ).ready(function() {

and it works! Final working code below:

add_action( 'resetpass_form', 'resettext');
function resettext(){ ?>

<script type="text/javascript">
   jQuery( document ).ready(function() {                 
     jQuery('#resetpassform input#wp-submit').val("Set Password");
   });
</script>
<?php
}