# My script is not working

**URL:** <https://meta.discourse.org/t/my-script-is-not-working/187902>\
**Category:** Development\
**Created:** [April 23, 2021, 1:07pm UTC](https://meta.discourse.org/t/my-script-is-not-working/187902 "2021-04-23T13:07:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [April 23, 2021, 1:18pm UTC](https://meta.discourse.org/t/my-script-is-not-working/187902/2 "2021-04-23T13:18:42Z")

</div>

You must write this stuff within Ember hooks because eg `$document.ready` is meaningless in an Ember app.

You may need to look at modifying the js of the modal’s controller depending on your needs.

---

_[View the full topic](https://meta.discourse.org/t/my-script-is-not-working/187902)._
