Posted on: 5/8/2013 8:34:00 PM | Views : 241

hello all

I am having a jquery function to change the css class of a li element. I have placed a link button inside li . I want make the css change using jquery as well as call link button click event. How to work it out. i have tried many ways but for me both will not be working together.

This is my jquery fn

$(function () { $("li").click(function (e) { e.preventDefault(); $("li").removeClass("active"); $(this).addClass("active"); }); });
my html section

<ul class="tabs group"> <li class="active"><asp:LinkButton ID="LinkButton1" runat="server" onclick="LnkView_Click" ValidationGroup="l">View</asp:LinkButton></li> <li> <asp:LinkButton ID="LinkButton2" runat= ...

Go to the complete details ...