Error occurs in Html Snippet

1
Hi Everyone, I am getting an error on Html Snippet saying “Error while evaluating javascript input: TypeError: $ is not a function” as below This working feature suddenly gives an error on our branch line. This works perfect on Javascript snippet but I don’t want to change it to any other widget because over all application there are many Html snippet like this and also this code is in live. Can any one please suggest any good solution for this ? 
asked
3 answers
1

As Aishwarya says, it does look like jQuery hasn’t loaded correctly in your browser.

There are a few things you can try to find out the problem.

Firstly, I would look in your developer tools if you use Chrome. Is there anything in your browser console log? Now look in the network tab, can you see a request for jQuery being made? There may be some network filtering such as an antispam filter blocking access.

I suspect you will find something is blocking the jQuery library from loading.

I hope this gives you some pointers and helps solve the problem. 

answered
0

Hi,

This happens when jQuery library is not correctly loaded. Can you check that once?

answered
0

Hi vignesh,

 

perhaps $(document.body) works for you.

 

Thanks,

Jan

 

 

answered