JSFiddle - React, Tailwind, and code Playground
by felixsigl
HTML
<html>
<head>
<title>Test</title>
</head>
<body>
<div id="wrap1">
<div id="content1">
<a id="click1" href="">click</a>
</div>
</div>
<div id="wrap2">
<div id="content2">
<a id="click2" href="http://www.google.com">click</a>
</div>
</div>
</body>
</html>
CSS
body {
font-family: "Inconsolata","Monaco","Consolas","Andale Mono","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
font-size:12px;
line-height:15px;
}
JavaScript
$(document).ready(function() {
$('a#click1').click(function() {
$('a#click2').click();
});
});