You need to sign in to do that
Don't have an account?

jquery in visual force page
i have a visual force page with four div's each div has a header and when the vf page loads intially i want only the headers to be viewed intially and on clicking the expand(+) in each div i want the content,and collapse(-) be viewed.How to achieve this expand and collapse of divs using jquery on clicking the images(+) to expand and (-) to collapse.Please help.Thanks in advancew1
Create a HTML structure like this :
With this CSS: (This is to hide the .content stuff when the page loads.
Using jQuery, write a click event for the header.
Thanks,
Rockzz
I am trying the same code as yours but its not working as expected for me ....Can u please guide me in this .On clicking header the function is not being called i dont know why.My code is