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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:59:38+00:00 2026-05-22T16:59:38+00:00

In the documentation , some features have worked on selectors since version 1.0. But

  • 0

In the documentation, some features have worked on selectors since version 1.0. But added to version 1.6 is the same feature that now works on an element. How is this something that was added? Is there a difference between a tag selector and an element?

  • 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-22T16:59:38+00:00Added an answer on May 22, 2026 at 4:59 pm

    A selector is a string. An element is the DOM object that you use selectors to select. The documentation you linked to has an example:

    Checks against an existing collection
    of alternating list elements. Blue,
    alternating list elements slide up
    while others turn red.

    <!DOCTYPE html>
    <html>
    <head>
      <style>li { cursor:pointer; }</style>
      <script src="http://code.jquery.com/jquery-latest.js"></script>
    </head>
    <body>
    
    <ul id="browsers">
      <li>Chrome</li>
      <li>Safari</li>
      <li>Firefox</li>
      <li>Opera</li>
    </ul>
    <script>
      var $alt = $("#browsers li:nth-child(2n)").css("background", "#00FFFF");
      $('li').click(function() {
        if ( $alt.is( this ) ) {
          $(this).slideUp();
        } else {
          $(this).css("background", "red");
        }
      });
    </script>
    
    </body>
    </html>
    

    Notice how the argument to $alt.is is the element that was clicked, this, not a jQuery selector string.

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

Sidebar

Related Questions

There is some documentation on the internet that shows that Windows changes the behavior
I have some documentation written in OpenOffice, and I would like to include some
I'm writing some documentation that will occasionally include C# or C++ code snippets. In
I am writing some documentation and I have a little vocabulary problem: http://www.example.com/en/public/img/logo.gif is
Currently, I have a project, where I have to add some features on to
I'm looking for some documentation on eclipse monkey features. What variables are predefined, what
I have several C# projects along with some internal library components that I'm trying
I have a couple of projects that I had started under Xcode 3.2.x some
I have been a Qt programmer for quite some time now and i understand
I have a google-maps mashup that worked fairly well with small test files -

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.