Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6652059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:05:16+00:00 2026-05-26T01:05:16+00:00

the following code is being problematic. <script type=text/javascript src=<javascript/prototype.js></script> <script type=text/javascript> // <![CDATA[ $(document).ready(function

  • 0

the following code is being problematic.

<script type="text/javascript" src="<javascript/prototype.js"></script>
<script type="text/javascript">

// <![CDATA[
$(document).ready(function () {

// Start Tabbing <---------------------
// Hide features tab
$('#detailFeatures').hide();

$('#menu a').click(function(){

    if ($(this).attr('rel') == 'pdf') return true;

    selected = $(this).attr('href');

    // Clear active tab
    $('#menu li').removeClass('active');

    // Add class to clicked
    tab = selected + 'Tab';
    $(tab).addClass('active');

    // Hide all content
    $('.productTab').css('display','none');

    // Show selected tab
    $(selected).css('display','block');

    return false;

    });
// End Tabbing <------------------

The above code is used to create a tabbed panel that allows seeing either a product overview or a product feature list

In the console im getting the error “Uncaught TypeError: Object # has no method ‘ready'”

Im using the standard prototype.js for lightbox and jquery.js for the tabbing, unchanged.

Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:05:17+00:00Added an answer on May 26, 2026 at 1:05 am

    Wrap your code in an anonymous function:

    (function($){
       //JQuery code here, example:
       $(document).ready(...);
    })(jQuery);
    

    This piece of code “converts” $ “back” to a JQuery object, so that the code inside this wrapper can safely use JQuery methods on $.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In the following javascript code there is [] being assigned as the value of
The following code is being used to disable a Submit button once it has
The following code illustrates an object literal being assigned, but with no semicolon afterwards:
I have following code that does not work due to a being a value
I have came across the following code, and being a C beginner, I came
I wonder why in the following code, d is not being cons ed into
Assume that the following code is being executed by 10 threads. pthread_mutex_lock(&lock) Some trivial
I am using the following code to capture all the AJAX calls being made
In the university we were given the following code sample and we were being
The following code results in the same hash code being generated for the two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.