# "Unvote" a poll

**URL:** <https://meta.discourse.org/t/unvote-a-poll/50476>\
**Category:** Feature\
**Created:** [September 22, 2016, 7:08am UTC](https://meta.discourse.org/t/unvote-a-poll/50476 "2016-09-22T07:08:59Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

**Author:** ![bletch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bletch/32/69088_2.png) [@bletch](https://meta.discourse.org/u/bletch)\
**Post date:** [October 5, 2021, 5:17pm UTC](https://meta.discourse.org/t/unvote-a-poll/50476/15 "2021-10-05T17:17:39Z")

</div>

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 🙃

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

```plaintext
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](https://global.discourse-cdn.com/meta/original/3X/a/b/ab4c4b2f5e2f99d3c764085ee46cc463684f9803.gif)

Thanks again.

---

_[View the full topic](https://meta.discourse.org/t/unvote-a-poll/50476)._
