+ 1

How to avoid $ error in javascript

When we write jquery code like to select $('outselector') then an error appear of $ sign how to solve this one

26th Mar 2019, 2:18 PM
Muhammad Idrees 🇵🇰
Muhammad Idrees 🇵🇰 - avatar
2 Respostas
0
Hi, is this a problem that happens only in this app? If it is, this can solve your problem: https://www.sololearn.com/Discuss/523340/?ref=app
26th Mar 2019, 2:44 PM
Ema261989
Ema261989 - avatar
0
First you have to include jQuery script, Still that error is appearing then wrap your code in following function: jQuery(function ($){ // Your code })
26th Mar 2019, 4:37 PM
Akshay Karande