I was tying .append, .appendTo, but it's not working.
Can you help me with examples?
For example, I have 2 divs: 1 with result from wait.php and 2 with
buttons. How I can merge these 2 divs?
My full code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script type="text/javascript" src="
http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript" src="jquery.blockUI.js?v2.17"></
script>
<script type="text/javascript">
<!--
$(document).ready(
function() {
$("#showDialog").click(
function()
{
$("#container").load('wait.php?ID=374&LOT_NUMBER=1');
//$("#container").show();
$("p#buttons").before($("#container").load('wait.php?
ID=374&NUMBER=1'));
//$("#question").html($("#container1").html());
$.blockUI({
message: $("#approve"),
css:{width:"275px"}
});
}
);
$("#yes").click(function() {
$.unblockUI({fadeOut:200});
$.blockUI({message: "<h1>Remote call in progress...</h1>"});
});
$("#no").bind("click", $.unblockUI);
}
);
// -->
</script>
</head>
<body>
<div id="container" style="display:none;"></div>
<div id="approve" style="display:none; cursor: default">
<p id="buttons">
<input type="button" id="yes" value="Yes">
<input type="button" id="no" value="No">
</div>
<input id="showDialog" type="submit" value="Show Dialog">
</body>
</html>