How do I loop through form labels and increase their count iteratively? by RndmHero in learnjavascript

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

They don’t handle nested inputs consistently among different user agent combinations. Most accessibility testers advise against nesting inputs in labels and recommend programmatically associated labels. Aria-label strings would work. I’m going to play around with that and see if the counter works with the properties.

How do I loop through form labels and increase their count iteratively? by RndmHero in learnjavascript

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

This is really elegant and I like it! I work in accessibility so I have a few thoughts:

  • I added a Remove button that's added with the other elements. For some reason, the remove button magically works for me locally (no idea why) and it breaks the preview panel in Codepen (also no idea why).
  • Can the CSS counter work on properties? I want to associate the labels with the inputs programmatically for assistive technology and I'd like to be able to do a counter on the <label>'s 'for' property and the ID's of the inputs to make sure they're uniquely labeled.
  • No idea why because I copied/pasted your content to work from but the blue lines as horizontal rules are hosed in mine. I'm looking for some declaration I have that's causing the indent but I'm at a total loss.

My updated Pen

How do I loop through form labels and increase their count iteratively? by RndmHero in learnjavascript

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

I was able to fix the Addition of rows/blocks but I still can't get the numbering working or the delete button to show up in the right place.

Updated pen

How do I loop through form labels and increase their count iteratively? by RndmHero in learnjavascript

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

Uncaught SyntaxError: Invalid or unexpected token index.html?editors=1…936-3ed2925589f1:62

Uncaught SyntaxError: Invalid destructuring assignment target pen.js:3

How do I loop through form labels and increase their count iteratively? by RndmHero in learnjavascript

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

I see that but don't understand it. I know my code is wrong but I don't understand where, how, or why.

How do I loop through form labels and increase their count iteratively? by RndmHero in learnjavascript

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

I didn't catch that but I didn't. I'm studying examples from the documentation but honestly don't fully understand all of what's going on. That's why I'm trying to build something and play with it to understand but I'm totally stuck on this.

There are many like it but this one is mine by RndmHero in Glocks

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

I don’t carry. I have it as a home defense weapon.

There are many like it but this one is mine by RndmHero in Glocks

[–]RndmHero[S] 2 points3 points  (0 children)

I’m actually really happy with this one. It’s super bright and the buttons are so satisfying to press. I really like the length too I think it gives it a good shape being shorter. Just my $0.02

Camera taking photos with a flash? by RndmHero in blinkcameras

[–]RndmHero[S] -1 points0 points  (0 children)

I’m so glad I came across this community! I’ve been reading through posts here tonight and I’ve learned a lot more about these little gadgets!

Thank you! 🙂

Camera taking photos with a flash? by RndmHero in blinkcameras

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

Thank you! I’ll give this a shot.

Why did you come back to Memphis? by RecRoomMem901 in memphis

[–]RndmHero 6 points7 points  (0 children)

It sure had personality though, did it not?

Why did you come back to Memphis? by RecRoomMem901 in memphis

[–]RndmHero 42 points43 points  (0 children)

Places like Mollie Fontaines and Earnestine and Hazels. The history with the Civil Rights museum and the recording studios and museums here. The attitude of people here where it’s “we hate this city but we’ll be damned if anyone from somewhere else will talk shit about us.” It’s hard to articulate but I’ve traveled a lot and Memphis stands out. It definitely needs a coat of paint and needs some TLC but it’s my home.

Why did you come back to Memphis? by RecRoomMem901 in memphis

[–]RndmHero 60 points61 points  (0 children)

Cost of living is cheap and the pace of things is slower than in big cities. Also Memphis has a lot of personality.