html点按钮弹出有文本框的对话框

如题所述

首先你需要先做个有文本框的对话框,定位到想要显示的位置,然后把他隐藏(display:none),点击相应的按钮让他显示就行了。

$("botton").click(function(){
  $("div").show();
})
温馨提示:答案为网友推荐,仅供参考
第1个回答  2015-03-20
<script>
function show(){
alert('你需要写的文字');
}
</script>

<input type="button" value="点我" onclick="show()"/>
相似回答