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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T17:28:21+00:00 2026-06-09T17:28:21+00:00

So, with var $moving we are creating javascript object, right? But what is $(‘<li/>’)

  • 0

So, with var $moving we are creating javascript object, right? But what is $('<li/>')? It is not even an html element.

Also, offset values describes the values of the $this element? So, in this case of the element #slidingMenu li:first?

var $menu = $("#slidingMenu");
var $selected = $menu.find('li:first');
var $moving   = $('<li/>',{
    className : 'move',
    top       : $selected[0].offsetTop + 'px',
    width     : $selected[0].offsetWidth + 'px'
});
  • 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-09T17:28:23+00:00Added an answer on June 9, 2026 at 5:28 pm
    • $("#slidingMenu"); takes the reference of #slidingMenu and $(‘#slidingMenu’) returns a jQuery object.

    • $menu.find('li:first'); find the first li within the #slidingMenu.

    • $moving = $('<li/>', properties) means, create a jQuery-wrapped li element on the fly but not added to DOM. For more.

    • $selected is reference to jQuery object and $selected[0] gives an element reference/ JavaScript object.But it doesn’t means $selected[0] is a reference to the first object and $selected[1] to the second and so on.

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

Sidebar

Related Questions

I'm moving my site from HTML/CSS into CodeIgniter. Have some experience with PHP, but
var some_name = { moving:false, show : function () { this.moving = true; $('element').slideDown(5000,
var gethtml = $(#topmenu > li.l89 a).text().split(' ')[1].replaceWith('Any World'); The text is not changing
I want to simulate scroll by moving body/html frame to the top/upwards by arbitrary
This is my grid of nodes: I'm moving an object around on it using
I'm using the following lines to store the location of an object. var lightboxTop
I have a row of images that are moving left or right with animate().
How to ensure that a Javascript function is finished before moving on to the
I am creating cookie using jquery, please see below code: var divID = $(link).next(.open-block-holder).find(div:first).attr(id);
I use this jQuery slide show http://css-tricks.com/moving-boxes/ in my page but the problem in

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.