Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have five div tags(jquery tabs) in my aspx page...Inside the second
div(tab) i have a button. onclick of that buttton the second div(tab)
should be switched..instead of that the first tab is coming.. How can
i switch the tab in code behind(Inside button onclick event)
Posted

 
Share this answer
 
Like you have code

div class='tab'>Tab1
div class='tab'>Tab2
div class='tab'>Tab3
div class='tab'>Tab4
div class='tab'>Tab5


$(document).ready(function(){
$('.tab').click(function(){

$(this) // do your code here.
});

});


Thanks
Prince Kumar
 
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