如何将另一个值放在另一个输入文本上

refers to this link:

https://gist.github.com/awgreenblatt/4499835

How can i put the value if i have 3 different input text like:

<input id="product_search[1]" type="text" data-provide="typeahead"><br>
<div id="product[1]" style="border-width:1; padding: 5px; border-style: solid"></div><br><br>

<input id="product_search[2]" type="text" data-provide="typeahead"><br>
<div id="product[2]" style="border-width:1; padding: 5px; border-style: solid"></div><br><br>

<input id="product_search[3]" type="text" data-provide="typeahead"><br>
<div id="product[3]" style="border-width:1; padding: 5px; border-style: solid"></div><br>

Thank you

taken from the link you provided

var products = [
            {
                id: 0,
                name: "Deluxe Bicycle",
                price: 499.98
            },
            {
                id: 1,
                name: "Super Deluxe Trampoline",
                price: 134.99
            },
            {
                id: 2,
                name: "Super Duper Scooter",
                price: 49.95
            }
        ];

$(document).ready(function(){
   $('#product_search1').val(products[0].name);
   $('#product_search2').val(products[1].name);
   $('#product_search3').val(products[2].name);
});

the fact that i tested with jsFiddle, my solution wont with your ID's. you might want to rename your input Id's

jsfiddle. http://jsfiddle.net/KVS5F/