[jQuery] treating DOM elements as "spreadsheet cells" : does a plugin like this exist?

[jQuery] treating DOM elements as "spreadsheet cells" : does a plugin like this exist?


I am wondering if there is a jQuery plugin that allows the developer
to apply and obtain function results by using page elements as
individual "cells".
In order to understand what I am talking about, consider a spreadsheet
application such as msft Excel. In a typical spreadsheet, you can
specify functions that operate on a specific range of cells:
=SUM(A1:A3) *return the sum of cells a1 through a3
What I'd like to know if someone has worked on a plugin that allows
you to do the same thing with arbitrary elements in a page:
<div class="cellA1">1</div><div class="cellA2">2</div><div
class="cellA3">3</div>
<div class="cellA4" cellval="SUM(A1:A3)"></div>
Upon running the "recalculate" method, the text of the last div would
be set to the appropriate value.
Has anyone done anything like this?