JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="input1">
<div id="formular1"></div>

JavaScript

jQuery("#input1").click(function () {
    jQuery("#formular1").dialog("open");
});

jQuery("#formular1").dialog({
    autoOpen: false,
    height: 300,
    width: 500,
    modal: true,
    resizable: false,
    buttons: {
        Speichern: function () {
            jQuery('#input1').val("test");
            jQuery(this).dialog("close");
        }
    }
});