我想用jquery创建简单的自定义弹出框。我的html代码如下。如何使用jquery创建自定义弹出框
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#btn1").click(function(){
alert("Thiws should be custom popup");
});
});
</script>
</head>
<body>
<button id="btn1">Show Text</button>
</body>
</html>
On clicking button it should open a form in popup asking username, email address and also it should have submit button
仅供参考我想问 http://www.c-sharpcorner.com/UploadFile/736ca4/custom-popup-window-using-jquery/
为什么你不想为此使用colobox插件? – 2015-03-03 06:18:06
看看jQuery UI对话框小部件。 – Barmar 2015-03-03 06:19:04
如果您的代码需要帮助,则需要发布Javascript。我们不会为你写信。 – Barmar 2015-03-03 06:19:36