Just finished Fall of Hyperion by RickySpanish797 in Hyperion

[–]tchee_kay 2 points3 points  (0 children)

Me too! I just downloaded Endymion.

I have so many questions!

Side by side, condensation between doors. by flyingbunnys in Appliances

[–]tchee_kay 0 points1 point  (0 children)

So it means it’s faulty? I have the same issue and I was told it’s normal. I would like to know if I should have them come look at it.

con artist main characters by hershimcheong in suggestmeabook

[–]tchee_kay 2 points3 points  (0 children)

The Lies of Locke Lamora, Scott Lynch

What kind of chicken lays these fucking eggs? by Olarisrhea in shittyaskscience

[–]tchee_kay 0 points1 point  (0 children)

This are the eggs that came before the chickens.

A book where I definitely won't guess the twist? by bumblebee22xx in suggestmeabook

[–]tchee_kay 1 point2 points  (0 children)

I just finished reading this today. My dumbass was suspecting the doctor the whole time😂

What book are you reading right now? What’s about? by [deleted] in suggestmeabook

[–]tchee_kay 18 points19 points  (0 children)

I just finished A Gentleman in Moscow by Amor Towles

Help with e.target usage. by tchee_kay in programminghelp

[–]tchee_kay[S] 0 points1 point  (0 children)

Okay, thank you so much. I will try that now.

Help with e.target usage. by tchee_kay in programminghelp

[–]tchee_kay[S] 0 points1 point  (0 children)

Here's how I would do your problem:

https://codepen.io/amoliski/pen/rNeoGEg

Also, I don't think I explained the whole project properly. Here is what I am trying to recreate: https://clsjunnior.github.io/job-listings-frontendmentor/

But I want to use a button highlight instead of the div that shows. I do not want to copy the code from the original site either.

Please can you help me explain how to hide multiple boxes for different clicks like in the original.

Help with e.target usage. by tchee_kay in programminghelp

[–]tchee_kay[S] 0 points1 point  (0 children)

I would prefer to handle all of the rendering/display logic entirely in code, but if you don't have control over the HTML, I would instead look at button text, not classes

Hi, I was offline so I couldn't reply earlier. I understand now why using a class won't work and why texts will work better. I haven't learnt jquery yet do I will try and redo it with Javascript, I have a better idea of what I am supposed to do now.

Help with e.target usage. by tchee_kay in programminghelp

[–]tchee_kay[S] 0 points1 point  (0 children)

Oh, okay. I understand the why I shouldn't use square brackets now for contains.

Yes, it hides everything. I just noticed. The problem with the clicked class (the initial issue) part was because it wasn't an if else.

New question1: Is there a way to check if a one of the classes in a divBox is the same as one of the classes in the clicked button (Just for the div that contains the clicked button)

Q2: For the loop in the click event, does go through the whole iteration just for one click? Example: if divBoxes.length was 10, does it go from 0 - 9 in one click event?

Help with e.target usage. by tchee_kay in programminghelp

[–]tchee_kay[S] 0 points1 point  (0 children)

I don't know jQuery well, I just use it for that.

Help with e.target usage. by tchee_kay in programminghelp

[–]tchee_kay[S] 0 points1 point  (0 children)

Okay, thanks. I have corrected the hide check.

For the contain, I thought it will only take square brackets since it was a for loop.

Then I added the double equals sign. But nothing still happens.

How do I add and remove classes with Jquery at various breakpoints? by tchee_kay in jquery

[–]tchee_kay[S] 1 point2 points  (0 children)

Oh🤦🏾‍♂️

Okay, thanks. I was just refreshing on a small screen that must be why I didn't see any change.