我想在单击(X)时关闭表单。

时间:2015-04-30 14:57:01

标签: html

我在表单中添加了一个表单关闭按钮但没有工作。我需要java脚本

吗?

<button type="button" class="close" data-dismiss="form" aria-label="Close"><span aria-hidden="true">&times;</span></button>

<div class="overlay" id="overlay" style="display:none;"></div>
<div id="myDiv">
<button type="button" class="close" data-dismiss="form" aria-label="Close"><span aria-hidden="true">&times;</span></button>

<legend><img src="/static/images/premium/chat.png">......</legend>
<form action="https://chat.rbb.bg/ccp/chat/form/100000" method="post" target="_blank" onsubmit="return window.confirm(&quot;You are submitting information to an external page.\nAre you sure?&quot;);">

<span class="box3">.......</span><input type="text" name="extensionField_PhoneNumber" id="box3"><br>
<span class="boxinfo">......</span>
<select name="extensionField_ccxqueuetag" id="boxinfo"><br>
	<option value="Chat_Csq23"></option>
</select><br>
<input type="submit" value="........" id="boxbuton"><input type="hidden" name="author" value="Customer"><br>
<input type="hidden" name="title" value="ccx chat"><br>
<input type="hidden" name="extensionField_h_widgetName123456" value="........."><br>
<input type="hidden" name="extensionField_chatError" value="Sorry, the chat service is currently not available. Please try again later.">
</form>
</div>
<input id="info" type="button" onClick = "this.style.visibility= 'hidden';" value="Имате Въпрос?" class="switchbuton">

完成这项工作。

1 个答案:

答案 0 :(得分:-1)

在这种情况下,您可以获得jQuery的帮助。我希望这个演示是您正在寻找的jQuery Dialog

您需要下载并链接jqueryui。

我希望这会有所帮助。