i have the following view that contains an @Html.DropDownList :-
<fieldset>
<legend>Answer here</legend>
<div class="editor-label">
@Html.LabelFor(model => model.Description)
</div>
<div class="editor-field" data-toggle="dropdown">
@Html.EditorFor(model => model.Description)
@Html.ValidationMessageFor(model => model.Description)
</div>
<div class="editor-label">
@Html.LabelFor(model => model.IsRight)
</div>
<div class="editor-field">
@Html.DropDownList("IsRight", String.Empty)
@Html.ValidationMessageFor(model => model.IsRight)
</div>
</fieldset>
and the following Java Script that display a simple alert message:-
<script type="text/javascript">
function removePartial2() {z
alert('Deletion was successful');
$(this).remove();
}
</script>
i have downloaded the associated script files (bootstrap-dropdown.js & bootstrap-alert.js) from bootstrap website, but i do not know how i can modify the above code to be able to use both the bootstrap dropdown and bootstrap alerts messages inside my asp.net MVC.?
BR
As you can see in http://twitter.github.com/bootstrap/components.html#buttonDropdowns they are not meant to work like a .net dropdownlist as it don’t keep the selected value, but you can do some workarounds in javascript.
I would not recommend it…