As I got the idea If I want change the anchor tag href by matching an anchor with a specific existing href, I wrote below code that is working:
<a href="Accept.php">Accept</a>
<script src="http://code.jquery.com/jquery-3.2.1.js"></script>
<script>
$("a[href='Accept.php']").attr('href', 'http://www.accept.com');
</script>
But Now I was working on to change the hyperlink by using the anchor tag value using jQuery.
I wrote below code for that but it's not working for me.
$("a[text='Accept']").attr('href', 'http://www.accept.com');