我必须从javascript函数调用div。
我有这样的表格标签:
<form action="save_json.php" id="hazardForm" method="post" onsubmit="displayDiv()">
这里是div,我必须从displayDiv()函数调用。
<div data-role="popup" id="submitPopup">
<div data-role="main" class="ui-content">
<p data-theme="b" style="color: #30659B">FORM REPORTED
SUCCESSFULLY</p>
<br> <br> <a href="#initialPage" data-role="button"
id="clearHz1" data-theme="b" data-mini="true">OK</a>
</div>
</div>
请帮助我!!
答案 0 :(得分:0)
$("#hazardForm").submit(function()
{
$('#submitPopup').show();
return false;
});
CSS:
.popup{
display:none;
}
HTML 的
<div data-role="popup" id="submitPopup" class="popup">
</div>