"Unvote" a poll

I’ve just looked at how I might approach this differently now that the results are always shown and have realised that I can accomplish what I want in a far simpler way.

So please leave it as it is! LOL :upside_down_face:

I simply target chosen (or not .chosen) result elements and set them to not display.

div.poll div.poll-container ul.results > li:not(.chosen) {
    display: none;
}

When I wrote my code a couple of years ago, I either didn’t notice the .chosen class or it’s a recent addition?

Either way, what I had was significantly over-engineered (polling Javascript!) as this seems to do what I need.

6451AF5C-2351-49E0-9A1F-C6C0A3D0D5E9

Thanks again.

1 Like