[jQuery] a little help - getting data pairs into input pairs

[jQuery] a little help - getting data pairs into input pairs


I have some data:
d1 = [[5,10],[10,15],[12,15],[15,18],[20,23]]
and I have a table with text inputs:
        <table cellpadding="0" cellspacing="0" id="curveData">
        <thead>
            <tr>
                <th>#</th>
                <th>Quantity</th>
                <th>Price</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1</td>
                <td><input type="text" class="qty" size="8"></input></td>
                <td><input type="text" class="price" size="8"></input></td>
            </tr>
            <tr>
                <td>2</td>
                <td><input type="text" class="qty" size="8"></input></td>
                <td><input type="text" class="price" size="8"></input></td>
            </tr>
            ... etc ...
            <tr>
                <td>10</td>
                <td><input type="text" class="qty" size="8"></input></td>
                <td><input type="text" class="price" size="8"></input></td>
            </tr>
        </tbody>
    </table>
How do I load the data into the text inputs (assume I click a
button#loadData)? There may same number of data pairs -or less- as
there are input pairs.
Thanks!