Cheephs Cheephs - 3 years ago 129
HTML Question

Store model id in html

If I have an html table with editable cells, and in

event I'm sending the new value to server. How can I store id of the model I'm changing?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download