0
I have a question on how to show the data of a json return, on the screen using html,javascript and jquery. Inside a jsp file.
Follow my javascript page:
function getAvaliacao(){
appAjax.genericRequestJSON('/ajax/docAux/avaliacao.json', function (json) {
$(json).each(function (i, documento) {
})
});
}
Within "document", I have the following database fields.
procedure, in a question, questao_desc, alt_resp, res_desc, highright
I need to present them on the screen in the form of a proof for the user in this way:
Procedure
num_questao - questao_desc
alt_resp - res_desc
alt_resp - res_desc
alt_resp - res_desc
alt_resp - res_desc
Ex:
Test manual
1 - You are in favor of abortion?
A - Yes
B - Nao
C - Maybe
D - I don’t know
E - No opinion
2 - You are in favor of legalizing marijuana?
A - Yes
B - Nao
C - Maybe
D - I don’t know
E - No opinion
3 - etc....
Where the user would choose which question he would find correct.
I don’t know much about html and javascript, so I’m struggling to do this basic and would like help.
Oops Urilo, I added an answer for you to see how I’d like it to look.
– Luís Afonso