+ 3
How do I create buttons that make whatever is currently on a screen disappear and something new display?
For two of my projects I need 3 buttons to make text come up on a screen and disappear when another is pressed to display new information. I don't have a code to present because I have no clue how to add that to my page. can someone give me a clue as to how that is done.
4 Respostas
+ 3
@Julien Will this work if I want 3 buttons that make previous text disappear when another one us clicked?
+ 2
There you go with an example:
https://code.sololearn.com/WqtJ3g3W90Cx/?ref=app
+ 1
so you wanna have a button to switch the display of an element? you can use jquery for that just create a button with onclick="yourfunc()" and in js you write this: function yourfunc() { $("#theelement").toggleClass("invisible"); and in css you create a class with .invisible { display:none;)
ill upload a sample code for you
+ 1
you can change the code example from me so it does