The wijdialog widget supports custom HTML content.
<body>
tags of the page.
<div>
<div id="dialog" title="Custom HTML">
<h2> HTML Content</h2><p> You can add custom HTML content.
<br /></p> Enter text here: <input type="text" id="input1" />
<br/> And then click: <input type="button" value="Show" onclick="alert(document.getElementById('input1').value)" />
</div>
</div>
<script id="scriptInit" type="text/javascript">
$(document).ready(function () {
// debugger
// $(":wijmo-wijdialog").wijdialog("destroy").remove();
$('#dialog').wijdialog({
autoOpen: true,
captionButtons: {
refresh: { visible: false }
}
});
});
</script>
Run your application. Enter text and click "Show". The pop-up should resemble the following image: