We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

Problem with Variables

Home Forums Puzzles Problem with Variables

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #64983
    daim124
    Participant

    Hello. I have a problem with puzzles . I have tried with multiple solutions and none seems to work.
    You can check it out here : https://gms-system.com/en/produkt/superstrong/

    Go to “Passage window/door — > the back of the garage –> position 11 –> window.
    When you check it, it should appear – when you uncheck it should dissapear. Thank you

    Puzzles Attached below

    Attachments:
    You must be logged in to view attached files.
    #64986
    kdv
    Participant

    Use this puzzle to see what’s happening when you click the “Window” button

    Btw, your button is not just a simple div, it’s an <input> element (a checkbox). So try to change the event type from “click” to “input” or “change”

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

    #64992
    daim124
    Participant

    Hello. I did that with “intput” and “change” It prints anything just when the checkbox is selected. When it’s unselected it does not do anything :( For example

    1st click (checking the checkbox) – ok, window appear
    2nd click (unchecking) – nothing happens
    3rd click (checking) – not ok, window hides.

    In console it looks like it

    1st click – visible
    2nd click – nothing changes
    3rd click – hidden
    4th click – nothing changes
    5th click – hidden

    • This reply was modified 1 year, 4 months ago by daim124.
    #64996
    kdv
    Participant

    Think. Keep on searching. The problem is in your a little over-complicated site structure that you can’t control. Try to change the target to this div (and give it some id)

    Or try to change the input type from “radio” to “checkbox”. The “radio” input works only if unchecked. If already checked it will do nothing when clicked again.

    Puzzles and JS coding. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.