I have some little problem with jQuery, I want to disable this jQuery, I've tried anything to do it like I disable use tag DIV, and PANEL from server side but not working, this is my jQuery I want to disable:
//To show or hide button select
$("[ID*=DivText]").click(function() {
$(this).next("[ID*=DivImgSelect]").css("display", "block");
$(this).prevAll("[ID*=hdnFooter]").val("True");
$(this).prevAll("[ID*=hdnText]").val("True");
$(this).css("display", "none");
});
$("[ID*=DivImgSelect]").click(function() {
$(this).prevAll("[ID*=DivText]").css("display", "block");
$(this).prevAll("[ID*=hdnFooter]").val("False");
$(this).prevAll("[ID*=hdnText]").val("False");
$(this).css("display", "none");
});
and this is my tag asp while used jquery:
<ItemTemplate>
<asp:Panel ID="DisplayFlags" runat="server" Enabled ="true">
<div id="DivTextInbox" runat="server" class="outerDiv" style='<%# DataBinder.Eval(Container.DataItem, "InboxFlag").ToString()=="True" ? "display:none": "display:block" %>'>
<a class="LinkText">
<asp:Label ID="spanLinkInbox" CssClass="LinkText" Style="cursor: pointer" ForeColor="blue" runat="server" Text="Not Allowed "></asp:Label></a>
</div>
<div id="DivImgSelectInbox" runat="server" class="imageSelected" style='<%# DataBinder.Eval(Container.DataItem, "InboxFlag").ToString()=="True" ? "display:block": "display:none" %>'>
<asp:Image runat="server" ID="imgSelectInbox" ImageUrl="~/Images/check.png" Width="16px"
Style="cursor: pointer" />
</div>
</asp:Panel>
</ItemTemplate>