Hi… I want to make a quiz page where when people submit answer the next question page comes from side. I don’t know if you can understand this …as i am new to the programming world.
here is the code i have written
<body>
<div class="quiz-field">
<div class="slides slide1">
</div>
<div class="slides slide2">
</div>
<div class="slides slide3">
</div>
<div class="slides slide4">
</div>
<div class="slides slide5">
</div>
</div>
<button onclick="myfun()">Click me</button>
</body>
as this is not complete code there will be quetions and checkboxes.
but i can’t make it the way i want.
i want all the other div to be hidden only the first div visible.
And after answering the first question user will click on button, which will lead them to second div.but the second div should slide in. and so on
i tried many javascript fuction and loops but can get the results. can anyone help me with it