JSFiddle - React, Tailwind, and code Playground

by Rajaprabhu Aravindasamy

HTML

<div>
   <a href="www.stackoverflow.com">test</a>
</div>

CSS

div{ width:200px; height:300px; background-color:red; }

JavaScript

$('div').on('click', function(event) { 
    $(this).children('a')[0].click(); 
});