【发布时间】:2014-04-03 08:21:42
【问题描述】:
我在 MVC5 视图 index.cshtml 中使用以下代码。目前警报显示一些文本。我需要更改它以打开一个弹出窗口,询问用户用户名和密码,我应该怎么做?
<script type="text/javascript">
$(document).ready(function () {
$("#M").change(function () {
if ($(this).val() == "F") {
alert("I am an alert box!");
}
});
});
</script>
我试过 var myWindow = window.showPopup(); 还是不行...
【问题讨论】:
标签: javascript jquery html asp.net razor