Title: Javascript not affecting plugin
Last modified: September 30, 2020

---

# Javascript not affecting plugin

 *  Resolved [yano23](https://wordpress.org/support/users/yano23/)
 * (@yano23)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-affecting-plugin/)
 * Hi,
 * I need to customize some things (need conditional display of slots)
 * The JS I write seems not to be affecting the plugin elements, for example:
 * jQuery(document).ready(function($) {
    $(‘a[h1=”14″]’).parent().css({ ‘cssText’:‘
   display: none !important’ }); });
 * is not hiding the element.
    css in style.css is working.
 * Could you suggest me something?
 * *I plan to buy the commercial version (I need WC payment gateways)
 * Thank you

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

 *  Plugin Author [codepeople](https://wordpress.org/support/users/codepeople/)
 * (@codepeople)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-affecting-plugin/#post-13490296)
 * Hi,
 * If that JS is referring to elements rendered into the form area then you have
   to run it when the form is completely rendered. Use the following event for that
   purpose:
 *     ```
       jQuery(document).on('showHideDepEvent', function(){
           (function($) {
                // ... your code here
           })(jQuery);
       });
       ```
   
 * Thank you for using the plugin!
 *  Thread Starter [yano23](https://wordpress.org/support/users/yano23/)
 * (@yano23)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-affecting-plugin/#post-13500443)
 * Hi,
 * I appreciate your help very much.
 * Unfortunately, even in that instance it doesn’t work in the available slots. 
   I think the code must be initialized everytime the user clicks on a date in the
   datepicker, and must be able to hide/show the slots after the hour variables 
   are generated by the plugin.
 * I sent you en email regarding if it possible a quotation for this customization.
 * Thanks!

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

The topic ‘Javascript not affecting plugin’ is closed to new replies.

 * ![](https://ps.w.org/appointment-hour-booking/assets/icon-256x256.png?rev=1784135)
 * [Appointment Hour Booking - Booking Calendar](https://wordpress.org/plugins/appointment-hour-booking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/appointment-hour-booking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/appointment-hour-booking/)
 * [Active Topics](https://wordpress.org/support/plugin/appointment-hour-booking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/appointment-hour-booking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/appointment-hour-booking/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [yano23](https://wordpress.org/support/users/yano23/)
 * Last activity: [5 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-affecting-plugin/#post-13500443)
 * Status: resolved