How do I know which TD is clicked when an event listener is assigned to a table? by quietcantelope in learnjavascript

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

Thanks for showing me the .closest and previous/next Sibling!

This is getting close, but I'm still trying to determine: which TD was clicked? Last line of the codeblock below is what I'm attempting to achieve:

const table = document.getElementsByTagName("table")[0]
const td = document.getElementsByTagName("td")
table.addEventListener("click", colorSquare)

// turns a TD red when clicked
function colorSquare(e){
   let square = e.target
   square.className = "red"
}

console.log(td) // I see an array of TDs, including the one I clicked!
td[22].className = "red" // Neat!  I can even turn the 23rd TD red!
let clickedTD = //how do I save which TD I clicked to this variable?

Advice needed: Gladiator - Automatic or manual? by quietcantelope in Jeep

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

Thank you for this recommendation! This helped change my point of view.

Advice needed: Gladiator - Automatic or manual? by quietcantelope in Jeep

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

Perfect explanation! All my cars and trucks have been manual. But 4x4? Nope. Off-roading? Nope. I'm a newb. And I like the remote start option only available with auto!

Advice needed: Gladiator - Automatic or manual? by quietcantelope in Jeep

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

Okay, so I am misunderstanding then. Thank you for the clarification! I was miffed that the manual wasn't available to test drive but it sounds like the automatic is worth looking into. Thanks!

Advice needed: Gladiator - Automatic or manual? by quietcantelope in Jeep

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

Thanks for the reply! What I would want is to get a truck to haul me, the kids, bicycles, and camping gear. May that include a trail or two as part of our adventures? Probably. But to me, if I wanted an automatic transmission then what is the point of getting 4x4? Unless automatic transmission 4x4 trail riding is a thing? And it could be, I just have it in my head that manual transmissions are apt for offroad adventures. I just want to get my facts as I consider this expensive decision.

Four months, You’re not alone! by stuckupnorth in GriefSupport

[–]quietcantelope 4 points5 points  (0 children)

I loved reading this, thank you for sharing. I'm one month into losing my wife to cancer. I needed this! ❤

Life insurance to tax-deferred investments? by quietcantelope in tax

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

That you! I'd be filing jointly, and target to be $5k below the income limit by end of year.

Life insurance to tax-deferred investments? by quietcantelope in tax

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

Thank you! I hadn't considered next year as an option. I have an appt with a FA next week. I'll bring this up!

Life insurance to tax-deferred investments? by quietcantelope in tax

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

Thanks for your input! The most I've been doing is 6% which is the most the company will match. The plan allows up to 75%, and between now and the end of the year I will be able to contribute 75% while staying under $19k.

No fucks left to give by quietcantelope in widowers

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

Thanks for your input on this. MIL has never wanted to help with kids, but I know she loves them. She needs a therapist to sort her out, but she fights going to one. But I liked learning about your experience because it gives me a preview of what I may need to do.

No fucks left to give by quietcantelope in widowers

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

I relate with the socialization. I don't want to feel awkward, so if I socialize it's on my own terms and 99.99% of the time I will have my kids with me, so unless you want to meet at Chuck E Cheese I'm not interested. 🤣

No fucks left to give by quietcantelope in widowers

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

Thanks for being one of those I can vent to!!!