# Adding a poll button to the bottom of the composer

**URL:** <https://meta.discourse.org/t/adding-a-poll-button-to-the-bottom-of-the-composer/142778>\
**Category:** Development\
**Created:** [27 februari 2020 om 03:38 UTC](https://meta.discourse.org/t/adding-a-poll-button-to-the-bottom-of-the-composer/142778 "2020-02-27T03:38:39Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![spirobel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/spirobel/32/170908_2.png) [@spirobel](https://meta.discourse.org/u/spirobel)\
**Post date:** [27 februari 2020 om 23:23 UTC](https://meta.discourse.org/t/adding-a-poll-button-to-the-bottom-of-the-composer/142778/8 "2020-02-27T23:23:55Z")

</div>

wow that seems like an amazing solution. mine is really boring compared to that:

```javascript
export default {
  actions: {
    showPollBuilderNextToSave() {
$("button[title='Options']").trigger('click')

console.log($("button[title='Options']"))
Ember.run.later((function() {
  $("li[data-value='showPollBuilder']").trigger('click');
    console.log($("li[data-value='showPollBuilder']"))
 
}), 50);

    }
  }
};

```

I just use jquery to click the button 😃 maybe there is a better way to find the first selector without hardcoding the options title, in case this would be an issue.

---

_[View the full topic](https://meta.discourse.org/t/adding-a-poll-button-to-the-bottom-of-the-composer/142778)._
