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:
http://imageshack.us/photo/my-images/811/sinttuloxs.jpg/
I tried using differents forms of show without any success.
$("#ddListaPrecios").Show();
or
$('#ddListaPrecios').Show('slow');
$(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());
});
});
<label>Lista de Precios: </label>
<label id="lbListaPrecios"> </label>
<%= Html.DropDownList("ddListaPrecios") %>
<!-- <%= Html.CheckBox("cbCambioLista") %> <label class="inline" for="cbCambioLista">Desea cambiar lista de precios?</label> -->
Your call to jquery
$("#ddListaPrecios").Show();needs to be all lowercase like this$("#ddListaPrecios").show();see the doc here http://api.jquery.com/show/