我正在使用无线电组,对于不同行中的不同离子无线电选择,我使用了 ngModel ,已经完成了。但是当用户更改其值时,如果条件不匹配,我有一些条件,那么应该使用ngModel进行选择,但我无法这样做。我正在寻找重装数据或刷新数据但我发现的结果是刷新页面,我不想刷新页面。所以我想设置离子收音机的选择,因为它使用ngModel,任何人都可以帮助我吗?我的代码在下面......
<link href="~/Content/toastr.css" rel="stylesheet" />
<script src="~/scripts/toastr.js"></script>
<div class="w3layouts-main" style="background-image:url('/template/web/images/bg3.jpg'); margin-top:50px;">
<h2>Login Now</h2>
@using (Html.BeginForm("Login", "Home", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<input value="E-MAIL" name="Email" type="email" required="" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'E-Mail';}" />
<input value="PASSWORD" name="Password" type="password" required="" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'password';}" />
<div class="clear"></div>
<input type="submit" value="login" name="login">
}
</div>
@section scripts {
@{
if (TempData["msg"] != null)
{
<script type="text/javascript">
toastr.error("", "Email or password is wrong !)");
window.location = '#2249506';
</script>
}
}
}