Я пытаюсь создать страницу просмотра вопросов идентификации пользователя. Как только пользователь выбирает вопрос, я хочу удалить вопрос из списка для следующего выпадающего списка, так как сейчас я выбираю вопросы из окна просмотра, Необходимо удалить выбранный вопрос. в следующем выпадающем списке может помочь любой пользователь.
@using (Html.BeginForm())
{
<div class="loginPanel col-centered" style="width:700px">
<section id="loginForm">
<form action="/" class="loginForm" id="form0" method="post" role="form" autocomplete="off">
<div class="form-horizontal" style="margin-left:auto;margin-right:auto;width:800px">
@Html.AntiForgeryToken()
<div class="form-horizontal">
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
@Html.LabelFor(model => model.Question1, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownListFor(model => model.Question1, new SelectList(ViewBag.Questions, "value"), new { id = "Question1",, @class = "form-control", style = "width:500px; overflow:hidden" })
@Html.ValidationMessageFor(model => model.Question1)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Answer1, htmlAttributes: new { @class = "control-label col-md-2", }) })
<div class="col-md-10">
@Html.TextBoxFor(model => model.Answer1, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Answer1)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Question2, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownListFor(model => model.Question2, new SelectList(ViewBag.Questions, "value"), new { id = "Question2", @class = "form-control", style = "width:500px; overflow:hidden" })
@Html.ValidationMessageFor(model => model.Question2)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Answer2, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.TextBoxFor(model => model.Answer2, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Answer2)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Question3, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownListFor(model => model.Question3, new SelectList(ViewBag.Questions, "value"), new { id = "Question3", @class = "form-control", style = "width:500px; overflow:hidden" })
@Html.ValidationMessageFor(model => model.Question3, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Answer3, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.TextBoxFor(model => model.Answer3, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Answer3, "", new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Submit" class="btn btn-lg btn-sharp btn-orange" />
</div>
</div>
</div>
</div>
</form>
</section>
</div>
Я знаю, что мне нужно написать код javascript для обновления пакета просмотра, пожалуйста, позвольте мне, как поступить, так как я новичок в этом MVC.