Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
$(document).ready(function()
{

$([id$=ImageButton1]).click(function () {
$(.ui-tabs).slideToggle();

});
});


am using the above code for toggle...

so when i click the button ,tabs should hide or show according to its visiblity..

consider my tabs is visible now....if i click the button , my tabs are sliding up and immediately its sliding down....i dono why?

pls help me in this...............
Posted

1 solution

Use Only toggle instead of slidetoggle , because toggle is the proper name of Function.!!
 
Share this answer
 
Comments
Chandan Aryan 29-Mar-12 12:43pm    
And also use id inside Double quotes
idhris2011 30-Mar-12 7:30am    
yeah...i used toggle too.....but it is start hiding and immediately the reverse is happening.....

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