JSFiddle - React, Tailwind, and code Playground
HTML
<script src="http://code.jquery.com/jquery-1.5rc1.js"></script>
<p>this is first tag</p>
<a href="#" id="tester">check this element</a>
JavaScript
$('#tester').click(function(){
alert(document.getElementsByTagName("p").item(0).innerHTML);
});