Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="col-sm-3 col-xs-12">
- <div class="form-group">
- @Html.DefaultLabelFor(model => model.CompanhiaId)
- @Html.EditorFor(model => model.CompanhiaId, new { Items = Model.CompanhiaList , @onchange = "diretoria(1,'listarByCompany','skill')" } )
- @Html.ValidationMessageFor(model => model.CompanhiaId)
- </div>
- </div>
- $.ajax({
- type: "POST",
- url: "@Url.Action('listarByCompany','skill')",
- data: {
- id: id
- },
- success: function ajaxSucceess(response) {
- var dir = $("#DiretoriaExecutivaId").empty(); //Removendo todos os itens
- dir.append($("<option>Selecione...</option>"));
- $.each(response, function (i, response) {
- dir.append($('<option>', {
- value: response.Value,
- text: response.Text
- }));
- });
- }
- });
Add Comment
Please, Sign In to add comment