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 {
>
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
2 matches
Mail list logo