<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("#bg").attr("href", function(i, origValue){
return origValue + "/institute/";
});
});
});
</script>
</head>
<body>
<p><a href="https://www.bapugraphics.com" id="bg">BapuGraphics.com</a></p>
<button>Change href Value</button>
<p>Mouse over the link (or click on it) to see that the value of the href attribute has changed.</p>
</body>
</html>