Skip to content
Advertisement

I want to onchange “change” just one time

so: I’ve been trying to make an onchange change just one time, because i want the object appear on the screen after the first change, and stay on the screen:

JavaScript

and used this javascript function to appear the div on the page

JavaScript

I don’t know what to do to have what i want. Help me please?

Thank You!

Advertisement

Answer

If I understood it correct, you want to show the button after the first item selected and then stay visible. If that is correct, please see below the example using your code. You do not need the else section in the code, and I added display: none to #button.

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement