简体   繁体   中英

Modal popup on the page

我有一个要求,我将在其中单击一个按钮并提交表单,但在两者之间想要显示一个对话框以向用户显示一些信息并发布继续提交操作的内容是否可能?

Yes, is that posible.

U can try a message alert, for example, with sweetalert , sweetalert2 and much more!

If you want to show a confirmation mesasge in the modal dialog then the submit action should be inside the modal dialog itself.

If it is something like:Are you sure you want to submit? then you can use the JavaScript confirm and return the result, ex:

<input type="submit" onclick="return getDetails();"/>
<Script>
function getDetails()
{
return confirm("Are you sure ....");
}
</script>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM