JSFiddle - React, Tailwind, and code Playground
HTML
<form action="#" method="post">
<label>Hit enter in this input<input type="text" /></label>
<div class="asset-widget">
<a href="/admin/asset_folder/browsePopupRoot" title="">
<img src="https://www.google.com/images/srpr/logo4w.png" alt="file" alt="" width="150" />
<span>production.png</span>
<br />
<input type="hidden" id="activity_asset" name="ctivity[asset]" value="27" />
<button class="btn">Open popup</button>
</a>
</div>
<input type="submit" />
</form>
JavaScript
jQuery(document).ready(function () {
jQuery(document).on('click', '.asset-widget a', function (e) {
e.preventDefault();
alert('Hello');
});
});