Obtener con javascript valor text de DropDownList

Y este es el código:

<asp:DropDownList runat="server" ID="ddlCiudad" onchange="alert(this.options[this.selectedIndex].text);"></asp:DropDownList>

Disfrútenlo.

Sean felices! :) Y sientanse libres de opinar ;)

No hay comentarios:

Publicar un comentario