I have one Json is back from ajax, the json is:
[{"id_caracteristica":"1","nombre":"Talla"},{"id_caracteristica":"2","nombre":"Color"}]
I need to save in two select the following information, id select is id_caracteristica value (1), and class select is name value (Talla)
1ºSelect id="1" class="Talla"
2ºSelect id="2" class="Color"
Solved, thanks to Gagan Deep, I put an alert as proof
...
dataType: "json",
success: function(data){
$.each(data, function(i, value) {
alert(value.id_caracteristica+" "+value.nombre);
}
...
data[0]to the each function. just passdatainstead and checkvalue.id_caracteristicaandvalue.nombre