I need a light for something I'm doing.
within form
there are several radios
and some text box
.
I need to get everyone's data within objeto jQuery
.
Below is an example of how I do only containing inputs
with checked
.
var dados = {"result":[]};
var objRadio = $('input:checked').each(function(){
dados.result.push({
"id_user" : idUser,
"id_varejo" : idvarejo,
"id_pesquisa" : idPesquisa,
"id_pergunta" : $(this).attr('name'),
"id_resposta" : $(this).val(),
"nome" : nome,
"id_status" : 7
});
});
and the return would be this:
I need the checks to return the value of it and in the text box return the text
Thank you if anyone can give me a light