Posted: November 24, 2016 at 2:05 am
|
Hi Here is an event on my page https://kennslumidstod.hi.is/events/kenningar-um-ahugahvot-og-hagnytt-gildi-theirra-i-kennslustofunni/ and if you press “Skráning” you will be taken to the registration form. I am trying to hide based on what you see in this picture http://imgur.com/a/3u737 This is the code I am using but I am getting errors function ee_custom_show_question_conditionally() { Let me know if you see the error in the code. Thanks in advance Runar |
Hi there, It looks like there’s at least one error in your code. This part:
Should be a ternary comparison, but it’s missing a
|
|
|
I get a SyntaxError when using this code. I got this code from you at this page https://gist.github.com/joshfeck/183209d5239cc07ec94f9ebbfb017d40 Regards, |
The code Josh recommended works fine when I add it to console. When the code is added – http://take.ms/Hc3cc After selecting the correct value – http://take.ms/Hc3cc I took the JS you from the code you linked above and added it directly to Chrome Dev Tools through the console. The only changes made then was to the ID uses in the class names and the value to check for. Double check the code you are using, confirm all of the punctuation is unstyled:
|
|
|
Thank you so much Tony. I see that you also left out the final line. This works perfectly 🙂 |
The support post ‘Show and hide’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.