1
I have a form where I pass some fields via Helper.
Ex:
<div class="form-group col-md-6">
@Html.LabelFor(model => model.Nome, new { @class = "control-label col-md- 6" })
@Html.EditorFor(model => model.Email, new { htmlAttributes = new { @class = " form-control", @placeholder = "Digite um Nome" } })
@Html.ValidationMessageFor(model => model.Nome)
</div>
Until then quiet, put in mine VIEW I also have a SELECT:
<div class="row">
<div class="form-group col-md-3">
@Html.Label("Pais", new { @class = "col-md-3" })
<select id="cmbPais" class="form-control">
<option>Carregar Paises</option>
</select>
</div>
<div class="form-group col-md-4">
@Html.Label("Estado", new { @class = "col-md-3" })
<select id="cmbEstado" class="form-control">
<option>Carregar Estados</option>
</select>
<div class="form-group col-md-4">
@Html.Label("Cidade", new { @class = "col-md-3" })
<select id="cmbCidade" class="form-control">
<option>Carregar Cidades</option>
</select>
</div>
</div>
</div>
where I need to pass the selected value to the controller to register the user. How can I do this ?
What is the name of the field
Estado
in his@model
? IScmbEstado
even?– Leonel Sanches da Silva
I edited the question. what I want to pass to the Controller is a Cidadeid value. What I get via Jquery.
– user37440