If I use master page with aspx page than jQuery change() function is not calling, if I use without master page change function is calling on dropdown index change
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script src="scripts/jquery-1.4.1.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
//Dropdownlist Selectedchange event
$('#ddlCity').change(function () {
// Get Dropdownlist seleted item text
$("#lblcity").text($("#ddlCity option:selected").text());
document.getElementById('<%=hdnfCity.ClientID %>').value = $("#ddlCity option:selected").text();
return false;
});
});
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Label ID="lblcity" runat="server"></asp:Label>
<asp:HiddenField ID="hdnfCity" runat="server" />
<asp:DropDownList ID="ddlCity" runat="server">
<asp:ListItem Text="Please select" Value="0"></asp:ListItem>
</asp:DropDownList></td>