JSFiddle - React, Tailwind, and code Playground
HTML
<form>
<div>
<input type="checkbox" name="checkThis" value="http://www.google.com" />Check here<br/>
<a href="http://www.google.com">click here</a><br>
<input type="checkbox" name="checkThis" value="http://www.bing.com" />Check here<br/>
<a href="http://www.bing.com">click here</a>
</div>
</form>
JavaScript
$('form input:checkbox').click(function () {
alert($(this).nextAll('a').attr("href"));
});