Profile image

Hey does anyone know...

11.6k JesusChrist  2.7 years ago

...javascript / html code to check every single comment in a post? Let's just say i wanted something special to happen if a comment was made by a certain user.

Edit: You can do it with a for loop, every day my coding skills grow stronger.

  • Log in to leave a comment
  • Profile image
    11.6k JesusChrist

    Only I would do such a thing as asking a coding question on a website where no one knows how to code.

    2.2 years ago
  • Profile image
    50.6k BeastHunter

    @Korzalerke Okay?

    +1 2.7 years ago
  • Profile image
    11.6k JesusChrist

    @BeastHunter Oh, don't worry about it.

    +1 2.7 years ago
  • Profile image
    50.6k BeastHunter

    @Korzalerke What did you say?

    +1 2.7 years ago
  • Profile image
    50.6k BeastHunter

    @Korzalerke Okay. I was just wondering if you wanted to mess with my comments.

    +1 2.7 years ago
  • Profile image
    11.6k JesusChrist

    @BeastHunter Like replacing a specific string on the comment element, i know the code to do it, but the code needs to run for every element on a array. Example:

    code.morecode[x].evenmorecode[3].innerHTML

    in this case, x needs to be every number from 0 to however many comments a post has.

    +1 2.7 years ago
  • Profile image
    50.6k BeastHunter

    Like what?

    +1 2.7 years ago