Skip to content

jQuery is not defined #87

@PRF-IPA

Description

@PRF-IPA

------ Check other post below -----

Uncaught ReferenceError: jQuery is not defined
at jquery.highlight-within-textarea.js:380

Gives me that error, I downloaded it with npm, included the files like this in my HTML

<link rel="stylesheet" href="node_modules\highlight-within-textarea\jquery.highlight-within-textarea.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="node_modules\highlight-within-textarea\jquery.highlight-within-textarea.js"></script>

I can see that the linkage works as no 404 in console.

<textarea id="content-editor"></textarea> <script> $('textarea').highlightTextarea({ words: ['Lorem ipsum', 'vulputate'] }); </script>

Uncaught ReferenceError: $ is not defined (I assume this one is related to the first error)

Any suggestions? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions