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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T02:44:38+00:00 2026-06-12T02:44:38+00:00

[RESOLVED] See below for question details. The line var maxUl = $(objUl+'[rel=’+maxItems+’]’); needs to

  • 0

[RESOLVED]

See below for question details.

The line

var maxUl = $(objUl+'[rel="'+maxItems+'"]');

needs to be

var maxUl = $(objUl.attr('id')+'[rel="'+maxItems+'"]'); 

to be functional with the current jQuery 1.8.2 implementation.


First of all thanks for taking the time to look at my issue with me. I’ve looked through many of the other questions and as best I can tell this issue isn’t the same.

I’m getting this error from firebug when I attempt to load a jQuery plugin on the page: Error: Syntax error, unrecognized expression: [object Object][rel=”7″]

Note: The plugin works fine when running jQuery 1.4.2, but running multiple jQuery instances isn’t an option for this project.

The plugin I’m trying to implement can be found here and downloaded here

Best Guess

So far I think I’ve managed to narrow it down to these two lines in his js file (jquery.dcdrilldown.1.2.js)

// Get level of largest sub menu
var maxUl = $(objUl+'[rel="'+maxItems+'"]');
var getIndex = findMaxIndex(maxUl);

And as best I can tell breaks after calling

var maxUl = $(objUl+'[rel="'+maxItems+'"]');

Because firebug doesn’t make it to the breakpoints in findMaxIndex() method.

My HTML file looks like this

JS Call

$(function() { // Drill down menu
  $('#drilldown').dcDrilldown({
    speed           : 'slow',
    saveState       : true,
    showCount       : false,
    linkType        : 'breadcrumb'
});

HTML ul

<div class="graphite dd-container">
<ul id="drilldown">
<li><a href="#">Home</a>
  <ul>
    <li><a href="#">Page 1</a></li>
    <li><a href="#">Page 2</a></li>
    <li><a href="#">Page 3</a></li>
    <li><a href="#">Page 4</a></li>
  </ul>
</li>
<li><a href="#">Products</a>

Any help you can offer will be greatly appreciated, thanks everyone.

  • 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-12T02:44:39+00:00Added an answer on June 12, 2026 at 2:44 am

    You need to look at what objUl is being set to. I bet before it used to resolve itself to a string when you concatenated to another string. Now it probably doesn’t do that (hence the [object Object] part).

    Look at what objUl is being set to and try to get maybe it’s .attr(‘id’) value instead.

    Edit
    Change

    var maxUl = $(objUl+'[rel="'+maxItems+'"]'); 
    

    to

    var maxUl = $(objUl.attr('id')+'[rel="'+maxItems+'"]'); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE: I found a solution. See my Answer below. My Question How can I
UPDATE: This is now resolved, see answer below. On one of my forms (in
How can I resolved this error that I see in Gradle after upgrading to
Please see the example code below: class A { private: class B { public:
EDIT See my solution below /EDIT I have a Visual Studio solution with two
Using this question , I created the class below, which handles drag and drop
I am getting this kind of error (see below). I am suspecting some plugins
Update! See my dissection of a portion of the C# spec below; I think
* Resolved * I implemented SimpleCart(js) to my one project. One can register and
I resolved a code issue with a gem, but how do I then use

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.