aquaone thank you!

I need to do a little reading up on what .push does

rolf

On Jun 5, 2008, at 3:09 PM, aquaone wrote:

$('#plot').click(function() {
var d1 = [];
    $('#curveData tbody tr').each(function() {
        tr = $(this);
        pair = [];
tr.find('input.qty').val() && tr.find('input.price').val() && pair.push( tr.find('input.qty').val(), tr.find('input.price').val () ) && d1.push( pair );
    });
    $.plot($("#graphHolder"), [
        {
            color: "#bb0000",
            data: d1,
            points: { show: true },
            lines: { show: true }
        }
    ]);
});



Reply via email to