Uncaught referenceerror is not defined

0 votes

Why and how does the written code give a result as an Uncaught ReferenceError: $ is not defined although it was working earlier?

$(document).ready(function() 
$('#tabs > ul').tabs({ fx: { opacity: 'toggle' } }); 
$('#featuredvid > ul').tabs(); });


The given results do not close now in the tabs despite having the jQuery being referenced in the header. What is the solution for this?
 

<script language="JavaScript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/sprinkle.js"></script> <script language="JavaScript" type="text/javascript" src="<?php echo get_option('siteurl') ?>/js/jquery-1.2.6.min.js"></script> <script language="JavaScript" type="text/javascript" src="<?php echo get_option('si

Feb 8, 2022 in Java by Soham
• 9,700 points
2,203 views

1 answer to this question.

0 votes

The references must be aligned or put in an order in respect to the script of jquery right at the start. It has been explained below:-

<script language="JavaScript" type="text/javascript" src="/js/jquery-1.2.6.min.js"></script> 
<script language="JavaScript" type="text/javascript" src="/js/jquery-ui-personalized-1.5.2.packed.js"></script> 
<script language="JavaScript" type="text/javascript" src="/js/sprinkle.js"></script>

In other words, a user should put the script reference to jquery script at the start and then followed by the jquery-ui. To conclude, start with jquery-x.x.x.min.js followed by the jquery-ui-xxxxxx.js.

answered Feb 8, 2022 by Rahul
• 9,670 points

Related Questions In Java

0 votes
1 answer

jQuery fix for "Uncaught TypeError: $ is not a function" error

 Use the following lines of code in ...READ MORE

answered Feb 16, 2022 in Java by Aditya
• 7,680 points
1,689 views
0 votes
1 answer

Javascript require() function giving ReferenceError: require is not defined

RequireJS is a JavaScript file and module ...READ MORE

answered Feb 17, 2022 in Java by Aditya
• 7,680 points
3,629 views
0 votes
0 answers

Javascript require() function giving ReferenceError: require is not defined

Essentially, I'm using javascript to scrape data from the Google Play store by: 1-Request 2-Cheerios 3-QueryString I used Google Market API from Github ...READ MORE

Sep 21, 2022 in Java by Nicholas
• 7,760 points
325 views
0 votes
1 answer

jQuery UI " $("#datepicker").datepicker is not a function"

I struggled with a similar problem for ...READ MORE

answered Feb 17, 2022 in Java by Soham
• 9,700 points
5,869 views
0 votes
1 answer

What is jQuery?

Hey, jQuery is a fast and concise JavaScript ...READ MORE

answered Feb 14, 2020 in JQuery by kartik
• 37,510 points
1,001 views
0 votes
1 answer

Uncaught TypeError: Cannot read property 'msie' of undefined - jQuery tools

Hello, Use the following script tag in your ...READ MORE

answered Apr 28, 2020 in JQuery by Niroj
• 82,880 points
14,310 views
0 votes
1 answer

Uncaught Error: Bootstrap's JavaScript requires jQuery

Hello @kartik, You have provided wrong order for ...READ MORE

answered Apr 28, 2020 in JQuery by Niroj
• 82,880 points
22,468 views
0 votes
1 answer

How to make Bootstrap popover Appear/Disappear on hover instead of click?

Hello @kartik, Set the trigger option of the popover to hover instead ...READ MORE

answered May 12, 2020 in JQuery by Niroj
• 82,880 points
2,986 views
0 votes
1 answer
0 votes
1 answer

Failed to load resource: the server responded with a status of 404 (not found)

In order to avoid an error while ...READ MORE

answered Feb 8, 2022 in Java by Rahul
• 9,670 points
1,792 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP