I want to pass the value that was selected from a list to a function when that value changes
This is the list in question:
<asp:DropDownList ID="DdlLista" runat="server" Width="290px" onchange="Alertando();"></asp:DropDownList>
and I must do some things in this function:
function Alertando(VALOR) {
if (VALOR=VALOR ESPERADO) {
alert('Se ha seleccionado VALOR como valor esperado');
}
else {
alert('Se ha seleccionado OTRO VALOR como valor no esperado');
}
}
what should I do?