TypeError: jQuery is not a function

Kevin9
Tera Contributor

Hello guys, I have an issue there is a client script OOB that contains jQuery but is failing, I have changed to $('') but it keeps with same issue.

Snag_fa69434.png

2025-01-30_9-29-59.png

 

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Kevin9 

ensure Isolate Script = False for that client script

This field is not on form but from list make it false

It allows DOM manipulation to work

Since you said it's OOB then is this OOB script itself not working?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Kevin9 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankur Bawiskar ,

Even after I do Isolate Script = False, jQuery does not work.

Please see below screenshot for details - all I'm trying is a simple css manipulation.

By the way, when I directly execute same script on browser console, it works.

subhadeep1618_0-1739334162871.png

 


Please mark this post as a solution and also as helpful, if this resolves your issue or query.

Thanks,
Subhadeep Ghosh.