Fire event in aspx page in asp.net in jquery or Fire event in jquery in aspx page in asp.net or
aspx event in jquery
<html>
<asp:DropDownList ID="ContentPlaceHolder1_ddlGroup" runat="server" class="form-control" AutoPostBack="true"
OnSelectedIndexChanged="ddlGroup_IndexChanded" required >
</asp:DropDownList>
</html>
<script>
$("#ContentPlaceHolder1_ddlGroup").trigger("change");
or
$("#ContentPlaceHolder1_ddlGroup").trigger("click");
</script>
aspx event in jquery
<html>
<asp:DropDownList ID="ContentPlaceHolder1_ddlGroup" runat="server" class="form-control" AutoPostBack="true"
OnSelectedIndexChanged="ddlGroup_IndexChanded" required >
</asp:DropDownList>
</html>
<script>
$("#ContentPlaceHolder1_ddlGroup").trigger("change");
or
$("#ContentPlaceHolder1_ddlGroup").trigger("click");
</script>
No comments:
Post a Comment