Support

Home Forums Event Espresso Premium Add jquery to inline php script to hide questions for certain tickets Reply To: Add jquery to inline php script to hide questions for certain tickets

Reply To: Add jquery to inline php script to hide questions for certain tickets

Author Replies
radiusinvestigations # Posted on May 14, 2018 at 8:05 am

Ok, so it appears that the #ee-reg changes with each checkout transaction but adding an id number at the end. If I change the find( line to the exact id number in that particular transaction, it does work, so the ticket ID is correct. I tried changing the find( to the following:

find( "[id^=["ee-reg-form-qstn-grp-veterans-pricing-"]" ).hide();

and while it saved, it did not hide the question and gave the following question in console: Uncaught SyntaxError: missing ) after argument list

When I click the reference link in console, the console box just shows a red X and a blank page within.

I also have this error show up, regardless if I have the code in my functions file: `Uncaught DOMException: Failed to read the ‘cssRules’ property from ‘CSSStyleSheet’: Cannot access rules
at et_core_page_resource_fallback (https://site2649728.nestifysites.com/registration-checkout/?uts=1526305315:12:165)
at HTMLLinkElement.onload (https://site2649728.nestifysites.com/registration-checkout/?uts=1526305315#checkout:199:295)`

I use Divi, so since it see an et_ shortcode, not sure if it’s related.

Do NOT follow this link or you will be banned from the site!