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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:54:09+00:00 2026-05-25T21:54:09+00:00

Okay, start out saying this is hard to explain with words only. So i

  • 0

Okay, start out saying this is hard to explain with words only.

So i have setup a example here: http://jsfiddle.net/AFhvS/2/

I have a code in PHP, that show() the span element with X .sletindtastningfelt if it’s filled.

In the jsfiddle, it’s placed at the bottom in the js field.

jQuery(document).ready(function() {
    $('#smeal-1-1').show();
    $('#smeal-1-1').addClass("upstartRemoveClass");

    $('#smeal-1-2').show();
    $('#smeal-1-2').addClass("upstartRemoveClass");
}); 

Ok so it appears X infront of the first two input fields now.

What it does now is that when you click on one of the 4 tr (input fields), it hides the other X’s and keeps the one infront of the field. This is caused by the .end().siblings().find('.sletindtastningfelt').hide();

I wish to change this procedure if it has the class “upstartRemoveClass”. So if it has the class upstartRemoveClass it should not hide, like the rest, when you click on a tr (input field)

  • 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-25T21:54:10+00:00Added an answer on May 25, 2026 at 9:54 pm

    How about using not?

    Like this:

    .end().siblings().find('.sletindtastningfelt').not(".upstartRemoveClass").hide();
    

    Does that give you the result you’re looking for?

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

Sidebar

Related Questions

Okay, let's start with an example. Keep in mind, this is only an example.
Okay let me start off by saying I have been looking around a lot
Okay, next PHPExcel question. I have an HTML form that users fill out and
Okay this question is very simple: I have a facebook page, and a website.
Okay I do apologise that I'm out of my depth here. I'm not the
Let's see...where to start here? Okay, yes I am working in Joomla and trying
Okay this is a homework question, and I just don't have a clue how
Okay, so I have a start datetime and an end datetime for multiple items.
Okay, so. I've got a database which has a column of timestamps. The start
Okay, I'm stumped. I'm fiddling with some project settings, trying to start linking against

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.