# jQuery document.ready callback

**URL:** <https://discuss.emberjs.com/t/jquery-document-ready-callback/11615>\
**Category:** Learning Team\
**Created:** [September 20, 2016, 2:49pm UTC](https://discuss.emberjs.com/t/jquery-document-ready-callback/11615 "2016-09-20T14:49:47Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Panman8201](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/panman8201/32/17727_2.png) [@Panman8201](https://discuss.emberjs.com/u/Panman8201)\
**Post date:** [September 21, 2016, 12:43pm UTC](https://discuss.emberjs.com/t/jquery-document-ready-callback/11615/7 "2016-09-21T12:43:57Z")

</div>

To fix the hint error you need to append `Ember.` to the second jQuery call.

```auto
App = Ember.Application.extend({
  modulePrefix: config.modulePrefix,
  podModulePrefix: config.podModulePrefix,
  Resolver,
  ready: function() {
    Ember.$(".bookashko-logo4-bklens1").click( function() {
        Ember.$(this).toggleClass("bookashko-logo4-bklens2");
    });
  }
});

```

Is this `.bookashko-logo4-bkklens1` available in the DOM at the time this runs? Eg: Is it within the `index.html` file?

---

_[View the full topic](https://discuss.emberjs.com/t/jquery-document-ready-callback/11615)._
