[jQuery] Re: JSON and variables

2010-01-14 Thread T.J. Simmons
Bah, of course the other way 'round. Thanks. - T.J. On Jan 14, 2:45 pm, MorningZ wrote: > Loop through the data, not the inputs > > so like: > > $.each(data, function(k, v) { >      var txt = document.getElementById(k); >      if (txt) { >           $(this).val(v); >      } >      else { >      

[jQuery] Re: JSON and variables

2010-01-14 Thread MorningZ
Loop through the data, not the inputs so like: $.each(data, function(k, v) { var txt = document.getElementById(k); if (txt) { $(this).val(v); } else { // could not find } }); On Jan 14, 3:35 pm, "T.J. Simmons" wrote: > Hi all, > > Got a quick quest