jquery-highlighttextarea icon indicating copy to clipboard operation
jquery-highlighttextarea copied to clipboard

jQuery is not defined

Open PRF-IPA opened this issue 7 years ago • 1 comments

------ 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.

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

Any suggestions? Thanks.

PRF-IPA avatar Nov 07 '18 19:11 PRF-IPA

----- Note ---- My issue up above was not due to his library, it was due to Electron, so if someone is using this with Electron make sure you add your scripts like this,

anyhow, I am left with this issue,

Uncaught TypeError: $(...).highlightTextarea is not a function

Thanks.

PRF-IPA avatar Nov 07 '18 21:11 PRF-IPA