I have a 3 tabs and 3 divs. second tab is active and what I want to do is on a click on a link button in second div to switch to third tab and show content of its div. The problem is that it will only switch for only 1 second and then revert back. It seems I can't put the code for a hyperlink ?? so I add a picture instead

jquery
$("#txtFormaManifestare").on("click", function () {
$("#MasuriTab").addClass("active");
$("#DivActivitateMasuriTab").addClass("active");
});
Marius VasilePosted Oct 24, 2023, 7:51 AM
I manage to get it work from code behind. First I added a HiddenField containing active tab value and on link btn click I can change active tab
jquery
and code behing
Marius VasilePosted Oct 22, 2023, 4:49 PM
So I got a developing with
but the problem I have now is that txtFormaManifestare is a LinkButton in an asp.net c# app DataList. The jquery is working only with the first value from the DataList but not with others (values are listed below)