JSFiddle - React, Tailwind, and code Playground
by johntrepreneur
HTML
<div>
<input type="text" id="txtLocation" name="txtLocation" />
</div>
JavaScript
//document.getElementById('txtLocation').value = 'hello back';
alert('form text before jquery dialog=' + document.getElementById('txtLocation').value);
var $dialog = $('<div></div>')
.html('test')
.dialog({
dialogClass: 'dlgSearchResults',
buttons: {
"Continue": function ()
{
alert('form text after jquery dialog=' + document.getElementById('txtLocation').value);
$(this).dialog("close");
}
},
autoOpen: false
});
$dialog.dialog('open');