Problem with search highlights

Problem with search highlights

hm123hm123 Posts: 84Questions: 27Answers: 1
edited August 2017 in Free community support

I've been trying to get the mark.js search highlight plugin to work as described here:

https://datatables.net/blog/2017-01-19

But it doesn't seem to work in my implementation:

https://jsfiddle.net/f47guoga/1/

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,309Questions: 26Answers: 4,947
    Answer ✓

    You are getting some JS errors indicating jQuery is not found loading bootstrap and mark.js. I think the problem is that you are loading some JS within the HTML section and some using the "External Resources" area of jsfiddle. It looks like the files in the "External Resources" are loaded first causing the errors.

    You don't want to load Bootstrap since you are using Semantic UI. Since you already have your JS and CSS includes in the HTML section I would move the two mark.js files there and remove all from the "External Resources". Don't load Bootstrap.

    Kevin

  • hm123hm123 Posts: 84Questions: 27Answers: 1

    It was that external resources vs internal load thing again. Should have known. Thanks for pointing that out Kevin.

This discussion has been closed.