JSFiddle - React, Tailwind, and code Playground
by ebiewener
HTML
<a class="alert">Click me for a browser alert window</a>
<a class="element">Click me to see the message appear in an element on the page</a>
<div class="message"></div>
CSS
a {display:inline-block; margin:15px; background:#f2f2f2}
JavaScript
$('a.alert').click(function(){
alert('You clicked the link!');
});
$('a.element').click(function(){
$('.message').html('You clicked the link!');
});