Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

238
Views
¿Cómo ocultar/mostrar elementos en DropDownList en View?

Me gustaría tener 5 listas desplegables con los mismos elementos. El siguiente paso es ocultar el elemento (que se selecciona en la primera lista desplegable) en otras listas desplegables.

Por ejemplo: elegiría el valor "Velocidad" del primer DropDownList y no lo mostraré en otros menús desplegables.

Revisé muchas soluciones con jQuery, pero nada funcionó.

Debajo de las dos primeras 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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!