How to use jquery correctly in SharePoint Web Part - jquery doesn't always fire

前端 未结 4 1854
谎友^
谎友^ 2021-01-13 02:27

I\'m learning how to use jquery with SharePoint. My example draws a red box inside the Content Editor Web Part when a link is selected. My code works when the SharePoint p

4条回答
  •  盖世英雄少女心
    2021-01-13 03:10

    Recently I have encountered with a problem I think it might help someone.

    In SharePoint head tag if you place the script tag like

    
    

    See the difference then it's working.

    I am surprised!

提交回复
热议问题