Click here to Skip to main content
15,922,894 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
$(document).ready(function () {
$("ul li").click(function () {
var ind = $(this).index();
$("#panel div:eq(" + ind + ")").not($(this)).hide();//for hiding remaining all tab contents
$("#panel div:eq(" + ind + ")").show(); //for display present tab only
});
});



in this java script i want to show tab content when i click respective tab...
and if i click one tab only that tab content will be showed remaining all are hide..but in my program present tab content showed as well as previous tab content...how to hide that???
here panel is my div id....
Posted

1 solution

 
Share this answer
 

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