Click here to Skip to main content
15,880,972 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
<ul class="tabrow" id="ulist">
<li id="list1"><div class="icon"><i class="ion ion-person-stalker" ></i></div>
<asp:LinkButton ID="linkMenuProfile" runat="server"
onclick="linkMenuProfile_Click">Profile</asp:LinkButton></li> </ul>





I want toggle event of jquery on click of above LinkButton
Posted
Comments
pradiprenushe 9-Aug-14 8:15am    
for which container you have to apply toogle?
m-shraddha 10-Aug-14 2:10am    
i have given container details in code itself

1 solution

try this jquery

JavaScript
$('#<%=linkMenuProfile.ClientID%>').click(function() {
  $( "#<%=linkMenuProfile.ClientID%>" ).toggle( "slow", function() {
    your logic
  });
});
 
Share this answer
 
Comments
m-shraddha 10-Aug-14 2:11am    
I did this but as LinkButton is server side control...it will refresh the page and this coding wont works
Member 10858162 23-Nov-15 21:23pm    
Did you manage to get this problem solved? I am having same issues with linkbutton toggling. Every click on linkbutton postback the page. I thought it was simple jquery. It seems a bit more work and research. If you did, please share with me, here. Thank.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900