none
How To call on a javascript in sharepoint RRS feed

  • Question

  • Hello,

    Im looking for a way to expand/collapse a few divs by clicking on some li's. I currently have a page that contains 6 lis and 6 divs. the goal is to click on li 1 and have it expose the content wrapped in div 1, click on li2 and have it expose the content in div 2, etc...

    I have some javascript that will do this for me but the problem is that in order for it to work I need to add an onclick to the HTML portion and sharepoint strips that out. Does someone have some javascript that will do this for me? Can this be done with pure CSS?

    Any help would be much appreciated

    Tuesday, April 25, 2017 3:02 PM

Answers

All replies