我想用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