문제

I'm trying to implement this solution to a SharePoint public facing site.

The timer seems to be working as I'm getting errors in browser consoles at every interval but nothing is happening:

'TypeError: next.tab is not a function'

Any thoughts?

도움이 되었습니까?

해결책

From comments:

That means jQuery.fn.tab is undefined, which means the jQuery version you are working on does not have Bootstrap tabs appended to it. This could be the result of many things, such as not including the bootstrap script, or order of scripts, or having several versions of jQuery on the same page.

There are several ways to get around this, such as:

  • Remove additional versions of jQuery.
  • Check that your script is included, and included after jQuery.
  • You might be able to use jQuery.noConflict.
  • Use requirejs (or browserify).
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 sharepoint.stackexchange
scroll top