• Resolved yano23

    (@yano23)


    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

    (@codepeople)

    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

    (@yano23)

    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.