【发布时间】:2013-05-18 22:06:09
【问题描述】:
HTML:
我不希望在早期模型中显示确认框,我正在尝试自定义确认弹出框。下面是我的代码:
<div id="add_form" style="display:none">
<h2> Are you sure want to delete the Follower</h2><br />
<div style="width:180px;margin:20px 5px 0 10px" align="right">
<button style="margin-right:10px;" type="button" class="close" name="cancel" class="forward backicon">
Cancel
</button>
<button type="submit" id="add" name="add" title="Add">
Ok
</button>
</div>
</form>
</div>
有可能吗?
【问题讨论】:
-
附带说明,您可以只使用
form.submit()而不是document.forms[id].submit() -
@roasted 想自定义删除确认弹框
-
@karthikr 因为我必须为 form_id 设置一个确认框,所以对如何在我的应用程序中申请感到困惑
标签: javascript jquery html django django-templates