JSFiddle - React, Tailwind, and code Playground
HTML
<div id="dialog">
<p>
<a href='#' class="buttonstyle2" onclick="showKeyIngredients();">
Browse
</a>
</p>
</div>
<div id="confirm-dialog">
Browse
</div>
JavaScript
$(function ()
{
$("#dialog").dialog({
autoOpen: false,
bgiframe: true,
autoOpen: false,
resizable: false,
minHeight: 250,
width: 700,
height: 250,
modal: true
});
$("#confirm-dialog").click(function ()
{
$("#dialog").dialog("open");
});
});