after an autocomplete ui call, I retrieve a json_encoded array, which looks like the following:

{"0":{"id":"","value":"CAA11 - Mountain View, CA","facname":"Main Shop","address":"1234 My Road","city":"Mountain View","state":"California","zip":"99999"},"Long_Name":["OPPS1","200TH EXAMPLE CO","UNIT55","UNIT88","809 DEPL","ANOTHER EX","US8888 EXAMPLE","YETANOTHER"]}
I'm interested in the key: "Long_Name". I need to a) dynamically add the appropriate number of html text input boxes to hold the "Long_Name" values. In the above example, 8 html input fields would be added, then populated with the Long_Name data.

any ideas, with jquery?

I have the other keys, (address, city, state for example) auto-populating already existing html fields. I'm just struggling with dynamically adding the fields, then filling them with the Long_Name data.

here's what I have so far:

$(function() {


        //autopops fields if user fills out facid field
            source: "facils.php",
            minLength: 2,
            select: function(event, ui) {
                //all of the below htlm fields auto-complete fine...
               //??dont know how to add the Long_Name data??