JSFiddle - React, Tailwind, and code Playground
by Shidhin C R
HTML
<div class="button">Click me</div>
CSS
.button {
text-decoration :underline;
cursor:pointer;
color: blue;
}
JavaScript
jQuery(".button").click( function(){
var ans = confirm("Do you want to proceed further ?");
if(!ans) return;
alert("Now you can code the rest ");
});