JSFiddle - React, Tailwind, and code Playground
by Vladimir
HTML
<a id="the-link-2" href="#">
The link 2
</a>
JavaScript
$(document).ready(function() {
$('#the-link-2').click(function() {
var array = ["test1"]
var newDiv = $(document.createElement('div'));
$(newDiv).html(array[0]).dialog({
buttons: {
'Previous': function() {
$(this).dialog("close");
},
'Next': function() {
$(this).dialog("close");
}
}
});
});
});