-2
I need to set up a FAQ in this style:
I click on the question, it presents the answer on the side. If I click on another question, the answer should switch and show the answer referring to another clicked question. How can I do that? From what I researched I noticed that I need a script, but I just started learning html precisely because of the work, so I don’t know much.. Any idea?
So, they use javascript for this, it would be like "when clicking on the text with the id such, the text such appears in the field", html does not do this since it is only a markup language. ----------- You could do using jQuery as well (which I believe is easier, since jQuery is a simplified javascript library). If you don’t know either, I suggest starting with javascript, so you get a sense of what it is, and then using jquery. Javascript course (videoaula), or [this one, which is in English, but which explains in great detail about everything](
– Gabriel Rodrigues
One of the first steps of who is starting, and take careful not to reinvent the wheel. Ever heard of Ootsrap? Here’s an example of what you want: https://www.w3schools.com/bootstrap/bootstrap_collapse.asp. I recommend you read: https://www.w3schools.com/bootstrap/bootstrap_get_started.asp.
– Marcos Marques
It has to be exactly on the side?
– UzumakiArtanis
Yeah, it needs to be right next door
– rayraisemeup
Thanks Gabrielrodrigues and Marcosmarques for the reference links and tips! I started reading and I understand, will help a lot
– rayraisemeup