Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to hide/show dropdownlist using jquery
    primarykey
    data
    text
    <p>I´m new developing on .net and using jquery. I´m trying to hide/show a dropdownlist and a checkbox that I have on my page. I can hide succesfully, but when i try to show nothing happens or i get a error on my code like this:</p> <p><a href="http://imageshack.us/photo/my-images/811/sinttuloxs.jpg/" rel="nofollow">http://imageshack.us/photo/my-images/811/sinttuloxs.jpg/</a></p> <p>I tried using differents forms of show without any success.</p> <pre><code>$("#ddListaPrecios").Show(); </code></pre> <p>or</p> <pre><code>$('#ddListaPrecios').Show('slow'); </code></pre> <hr> <pre><code> $(document).ready(function() { $("#ddListaPrecios").hide(); $("#codigoCliente").autocomplete({ minLength: 1, source: getData, select: function(event, ui) { cambiaElementos(ui.item.value); updateCiudades(ui.item.value); updateListaVendedores(ui.item.value); updateListaPrecios(ui.item.value); } }); $("#codigoCliente").change(function() { if ($("#codigoCliente").val().length == 6) { cambiaElementos($("#codigoCliente").val()); updateCiudades($("#codigoCliente").val()); updateListaVendedores($("#codigoCliente").val()); updateListaPrecios($("#codigoCliente").val()); $("#ddListaPrecios").show(); } }); $("#ddListaPrecios").change(function() { //window.alert($("#ddListaPrecios").val()); changePrecio($("#ddListaPrecios").val()); }); $("#ddCiudad").change(function() { updatePuntosEntrega($("#codigoCliente").val(), $("#ddCiudad").val()); }); }); &lt;label&gt;Lista de Precios: &lt;/label&gt; &lt;label id="lbListaPrecios"&gt; &lt;/label&gt; &lt;%= Html.DropDownList("ddListaPrecios") %&gt; &lt;!-- &lt;%= Html.CheckBox("cbCambioLista") %&gt; &lt;label class="inline" for="cbCambioLista"&gt;Desea cambiar lista de precios?&lt;/label&gt; --&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload