Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

240
Vistas
How to hide/show elements in DropDownList in View?

I would like to have 5 Dropdownlist with the same elements. The next step is to hide element (which is picked in first dropdownlist) in others dropdownlists.

For example: I would pick value "Speed" from first DropDownList and I won't show in others dropdowns.

I checked a lot of solutions with jQuery, but it nothing worked.

Below first two DropDownLists:

    <div class="form-group">
        @Html.LabelFor(m => m.FirstParameter, new { @class = "col-md-2 control-label" })
        <div class="col-md-10">
            @Html.DropDownListFor(m => m.FirstParameter, new SelectList(ViewBag.list), htmlAttributes: new { @class = "form-control" })
            @Html.ValidationMessageFor(m => m.FirstParameter, "", new { @class = "text-danger" })
        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(m => m.SecondParameter, new { @class = "col-md-2 control-label" })
        <div class="col-md-10">
            @Html.DropDownListFor(m => m.SecondParameter, new SelectList(ViewBag.list), htmlAttributes: new { @class = "form-control" })
            @Html.ValidationMessageFor(m => m.SecondParameter, "", new { @class = "text-danger" })
        </div>
    </div>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda