Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends,
i have a mysql database in which i have question and option table like that for one question has 4 options. now i want to display one question and there four options in my webpage and for next questions i want to use next button. In my servlet in doGet method i have write the code for getting question and there option. but it will give me all the questions and there all options like this:
Qu. 1 What is Ajax?
1. option1
2. option2
3. option3
4. option4
Qu. 2 What is servlet?
1. option1
2. option2
3. option3
4. option4
.
.
.
.
like multiple questions and there options. and then i gave a submit button.

now i want to take each question and there 4 options separated by the next button.
can i use ajax? if yes then what is logic and that code?

thank you....
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900