JSFiddle - React, Tailwind, and code Playground
HTML
<!doctype html>
<html lang="en">
<body>
<a id="search_link" href="https://www.bing.com/">Click Me</a>
<div>
<button id="submit">Click Anchor</button>
</div>
</body>
</html>
CSS
button {
font-size: 14px;
margin: 8px;
padding: 3px;
}
JavaScript
$(document).ready(function() {
$('#submit').click(function() {
window.location = $('#search_link').attr('href');
})
});