Cycle Through form Inputs and match with Json array
I run an ajax request and return a json array.
There is more in the json array than there is fields on the page. I want to cycle through text fields and find their NAME and match that to the json array and fill in the value.
The names of the fields and the names in the json array are the same.
However, some of the fields are text fields, some are textfields, some are radio buttons, and checkboxes. As I said the json array has MORE fields than there are fields on the page. So I dont want to deal with unnecessary code runs.