I'm playing with the flot plugin (http://code.google.com/p/flot/) and need a little help
I want to take data from a series of text inputs (Quantity/Price pairs) and plot them when a button is clicked. I just don't understand enough about javascript and arrays to know how to make an array from the inputs (I suspect it's simple) I have this test page, which uses a hardcoded array to draw the graph: http://www.monkeypuzzle.net/testfiles/jquery/flot/flot-test-1.htm How do I get from: <table> <tr> <td>1</td> <td><input type="text" class="qty"></input></td> <td><input type="text" class="price"></input></td> </tr> <tr> <td>2</td> <td><input type="text" class="qty"></input></td> <td><input type="text" class="price"></input></td> </tr> <tr> <td>3</td> <td><input type="text" class="qty"></input></td> <td><input type="text" class="price"></input></td> </tr> <tr> <td>4</td> <td><input type="text" class="qty"></input></td> <td><input type="text" class="price"></input></td> </tr> <tr> <td>5</td> <td><input type="text" class="qty"></input></td> <td><input type="text" class="price"></input></td> </tr> </table> to this?: var d1 = [[5, 10], [10, 15], [20, 20], [30, 25], [40, 25]]; thanks! rolf