Man, this should be easy. I want to have the "changed" alert show when someone the dropdownlist selected index changes. It has to be a server control for population and obtaining it's value. When the index changes text will or will not display in a div
tag.
<asp:DropDownList ID="ddlPayer" runat="server" AutoPostBack="false"></asp:DropDownList>
<script type="text/javascript">
alert('start');
jQuery(document).ready(function () {
$('<%= ddlPayer.ClientID %>').change(function () {
alert('changed');
});
});
function ChangePayer()
{
var doc = document.frmSearch;
etc ........
The start alert doesn't show, nor does the changed one appear. Help, what have I done wrong?
Go to the complete details ...