Hope you're well;

I am adding JavaScript code into content web part. However it is not working. I'm i mising something out.

enter image description here

enter image description here

  • 1
    need more info. what is it what you want to achieve? does your js gives error in console of browser (F12)? – M.P. Jul 25 '18 at 12:03
  • 1
    error your code: <\/script> change to </script> – Fox Jul 25 '18 at 12:10
  • I want the writing of text to appear as drop down when you click on little triangle icon. it does work in SP2010 however it don't work in SP Online – AY_91 Jul 25 '18 at 13:30

I prefer add your code into html file and give reference to content editor webpart. In this way, HTML will not get messed up while you are editing the page for second time, also your code will be stored securely in one file. In accident if the page got deleted or content editor got deleted then all your changes will go away. So put your script, css, html in .html file and give the link and see whether it is working or not.

  • Hello I followed what you done. nothing happens – AY_91 Jul 27 '18 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.