JSFiddle - React, Tailwind, and code Playground
by chauhangs
HTML
<div id="dialog-confirm" title="test ?">
<p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span>Are you sure?</p>
</div>
JavaScript
var yes = 'Si';
var no = 'No';
$(function() {
$( "#dialog-confirm" ).dialog({
resizable: false,
height:140,
modal: true,
buttons: [
{
text: yes,
click: function() {
$( this ).dialog( "close" );
}
},
{
text: no,
click: function() {
$( this ).dialog( "close" );
}
}
]
});
});