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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:03:31+00:00 2026-05-12T23:03:31+00:00

I can’t find the way to do a very simple thing: I have some

  • 0

I can’t find the way to do a very simple thing:
I have some <li> with a class like the following:

<li class="picture 62033">lala</li>
<li class="video 41463">lala</li>
<li class="video 53553">lala</li>
<li class="video 53554">lala</li>
<li class="video 51483">lala</li>
<li class="video 36715">lala</li>

displayed on a page where I also have this div (the number changes from page to page)

<div id="nodenid">51483</div>

I just want to .hide() the <li> with that ID.
Something like this

$(".mypage").find('li').hide();

but that, of course, hides all of them 🙂

How can I get the value from the #nodenid and use it to hide the matching <li>?

  • 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-12T23:03:32+00:00Added an answer on May 12, 2026 at 11:03 pm
    $("LI." + $("#nodenid").html() ).hide();
    

    The argument of $() is CSS selector. So, to select LI with class 1321132 you need to use $(“LI.1321132”) or just $(“.1321132”)

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

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
Can anybody tell what is the best(easy) way to sort the following string 'index'
Can't figure out how to do this in a pretty way : I have
Can we add custom language for RecognizerIntent? I have search many SO Question like
I have some data like this: 1 2 3 4 5 9 2 6
Can someone please explain to me in a simple way why constants don't matter
Can I kill a .NET 4.0 Task object with some method like we could
Can this be done? It seems like this should be possible. In general, I
I have a jquery bug and I've been looking for hours now, I can't
Can anyone give me an example of how to return the following json simply

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.