Possible Duplicate:
trigger an event when contenteditable is changed
I have a table on my page (generated with PHP) that I've enabled 'Contenteditable' for. Once the user loads the table, they can click on any of the table cells and change the values locally. I would like to bind a function onto the table cells so that any change locally would be pushed back to the server. The natural way to do this would be to bind an 'OnChange' event to each generated table cell. But since I am not working with a traditional HTML form, 'OnChange' isn't an option. Is there a way for me to mimic the 'OnChange' event on each data cell of my table?