在HTML中存储模型ID

If I have an html table with editable cells, and in onchange event I'm sending the new value to server. How can I store id of the model I'm changing?

You can set the id in data-id="" attribute in html and in jquery you can fetch like that $(this).data('id')

Store Modal Id using jquery

var someName = $(this).data('id');

For More you can read this jquery dataid manual using jquery you can print this wherever you want.