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 8323445
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T23:43:39+00:00 2026-06-08T23:43:39+00:00

I have dropdown menus that look like this: However, I wanted a div element

  • 0

I have dropdown menus that look like this:

However, I wanted a div element to stick the top of a page at a certain scroll range, so I added this code in the head:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
// <![CDATA[
$(window).scroll(function(e){
    $el = $('.fixedElement');
    if ($(this).scrollTop() > 1437 && $el.css('position') != 'fixed'){
        $('.fixedElement').css({'position': 'fixed', 'top': '0px'});
    }
    if ($(this).scrollTop() < 1437 && $el.css('position') != 'absolute'){
        $('.fixedElement').css({'position': 'absolute', 'top': '1437px'});
    }
});
// ]]>
</script>

.fixedElement is defined in my CSS file, and then referenced with

<div class="fixedElement">

Now, my dropdown menus look like this:

When I comment out the new javascript, the menus go back to normal.

Any ideas on how to make my new javascript work with my dropdown menus?

Thanks!

EDIT:

One console error pertaining to the dropdown javascript is:

Uncaught TypeError: Object #<Object> has no method 'getElements'

That is referencing this line:

var links = $(this.options.id).getElements('a');

In this javascript: MenuMatic

When I comment out the new javascript the error disappears and my menus come back!

  • 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-06-08T23:43:41+00:00Added an answer on June 8, 2026 at 11:43 pm

    Got it.

    My dropdown javascript was using the MooTools library, while my sticky div was using jQuery.

    jQuery uses “$” as a shortcut for “jQuery”, so the line

    var links = $(this.options.id).getElements('a');
    

    referencing javascript from the MooTools library throws an error because jQuery has overwritten the definition for “$”

    This conflict is solved by inserting

    jQuery.noConflict();
    

    before my jQuery script and replacing all of the “$” in my jQuery script with “jQuery”

    More info here: http://docs.jquery.com/Using_jQuery_with_Other_Libraries

    See also:

    jQuery and other libraries, and the usage of '$'

    What is the meaning of symbol $ in jQuery?

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

Sidebar

Related Questions

I have a table that contains multiple dropdown menus for a list of profile
I have a dropdown (ul.sub-menu) with items inside (ul.sub-menu > li) that I'd like
I have created this css3 dropdown menu that appears behind the image when I
I have a dropdown menu that pulls in text from a database column. The
I have a dropdown menu that I am using and can't quite get it
I have a dropdown menu that is filled by a mysql database. I need
I have a CSS dropdown menu that is functioning how I want it to
I have a dropdown menu on a website that works perfectly on all browsers
I have some code that first selects an option value in a dropdown menu
I currently have a series links that open menus containing dropdowns and input textboxes

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.