garysieling / jquery-highlighttextarea

http://garysieling.github.io/jquery-highlighttextarea/
155 stars 76 forks source link

jQuery is not defined #87

Open PRF-IPA opened 5 years ago

PRF-IPA commented 5 years ago

------ 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 commented 5 years ago

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