I made a form with the JQuery accordion and at the end a send button. After pressing the button should appear a pop up message, but it is giving error. My pop up appears when the page starts and this button is kind of useless because pop up should come later. Who can help me?
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="https://resources/demos/style.css">
<script src="https://code.jquery.com/jquery-1.12.4.js"></script><scriptsrc="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script>
<script> <!--- jQuery UI “Submit” button --->
$( function() {
$( ".widget input[type=submit], .widget a, .widget button" ).button();
$( "button, input, a" ).click( function( event ) {
event.preventDefault();
});
});
</script>
<!--- jQuery UI Dialog message --->
<script>
$( function() {
$( "#dialog" ).dialog();
});
</script>
<div class="widget">
<input type="Submit" value="Submit"/>
</div>
<div id="dialog" title="Order Complete">
<p>Your order has been placed.</p>
</div>