-1

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

3
  • 1
    need more info. what is it what you want to achieve? does your js gives error in console of browser (F12)? Commented Jul 25, 2018 at 12:03
  • 1
    error your code: <\/script> change to </script> Commented Jul 25, 2018 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 Commented Jul 25, 2018 at 13:30

1 Answer 1

0

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.

1
  • Hello I followed what you done. nothing happens Commented Jul 27, 2018 at 10:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.