Title: Loading mask CSS selector wrong
Last modified: August 31, 2016

---

# Loading mask CSS selector wrong

 *  [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * (@palpatine1976)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loading-mask-css-selector-wrong/)
 * Hi –
 * I think you have the wrong CSS ID in the loading mask callback:
 * `$('.wpfc-loading').css('left',position.left).css('top',position.top).css('width',
   $('#calendar').width()).css('height',$('#calendar').height()).show();`
 * Should be $(‘#wpfc-calendar’) maybe?
 * [https://wordpress.org/plugins/wp-fullcalendar/](https://wordpress.org/plugins/wp-fullcalendar/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loading-mask-css-selector-wrong/#post-7012012)
 * it seems to be correct; can I know the reason or are you getting any error?
 *  Thread Starter [Palpatine1976](https://wordpress.org/support/users/palpatine1976/)
 * (@palpatine1976)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loading-mask-css-selector-wrong/#post-7012013)
 * I’m not getting any error – but as far as I can see, there is no DOM element 
   with the id “calendar” so doing $(‘#calendar’).width() or height() isn’t going
   to return any values. There IS however, a DOM element #wpcf-calendar.
 * The loading mask works fine because it has width + height set to 100% in the 
   stylesheet. Maybe this sizing snippet isn’t needed at all?
 *  Plugin Support [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * (@angelo_nwl)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/loading-mask-css-selector-wrong/#post-7012102)
 * I see what you mean now, Im going to let the devs know about this.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Loading mask CSS selector wrong’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-fullcalendar.svg)
 * [WP FullCalendar](https://wordpress.org/plugins/wp-fullcalendar/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fullcalendar/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fullcalendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fullcalendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fullcalendar/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [angelo_nwl](https://wordpress.org/support/users/angelo_nwl/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/loading-mask-css-selector-wrong/#post-7012102)
 * Status: not resolved