hi
I use below code for megamenu
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
<script type="text/javascript">
$(function () {
localStorage.removeItem('SelectedMenu');
$('[id*=Lbtncontinu1]').on('click', function () {
localStorage.setItem("SelectedMenu", $(this).closest('td').find('[id*=Label14]')[0].innerText);
});
});
</script>
as you see in this line:
$('[id*=Lbtncontinu]')
I use linkbuttonid:
<asp:LinkButton ID="Lbtncontinu" runat="server" CommandArgument='<%# Eval("UrlName") %>' Text="LBsecondG"
OnClick="LinkbtnclassR_Click" CssClass="lblRnameS" Visible = '<%#Eval("FirstClass").ToString() != "گرافیک و انیمیشن" ? false : true %>'><%# Eval("Name") %></asp:LinkButton>
now I have 2 LinkButton how I can define it for 2 linkbutton?
<asp:LinkButton ID="Lbtncontinu" runat="server" CommandArgument='<%# Eval("UrlName") %>' Text="LBsecondG"
OnClick="LinkbtnclassR_Click" CssClass="lblRnameS" Visible = '<%#Eval("FirstClass").ToString() != "گرافیک و انیمیشن" ? false : true %>'><%# Eval("Name") %></asp:LinkButton>
<asp:LinkButton ID="LbNext" runat="server" CommandArgument='<%# Eval("UrlName") %>' Text="LBsecondG"
OnClick="LinkbtnclassR_Click" CssClass="lblRnameS" Visible = '<%#Eval("FirstClass").ToString() != "گرافیک و انیمیشن" ? false : true %>'><%# Eval("Name") %></asp:LinkButton>
Best Regards
Neda