I would like to trig jQuery change event with ASP .Net. Here is the part of ASP and jQuery code:
<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="body">
<p>
<asp:DropDownList ID="DropDownList1" runat="server">
</asp:DropDownList>
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</p>
<script type ="text/javascript">
$('#DropDownList1').change(function() {
alert( "Handler for .change() called." );
});
</script>
</asp:Content>
Tried to get element by id #body_DropDownList1 and #DropDownList1. Unfortunately with no output in both cases.