The question is quite banal, but I need your help.
There is a page, contacts are loaded into it from the database. The contact itself looks like this
<div class="ui cards cardsWrapper"> <div class="card"> <div class="content"> <div id="' + array[i].id + '" class="right floated">' + array[i].id + '</div> <div contenteditable="true" class="header">' + array[i].title + '</div> <div contenteditable="true" class="meta">' + array[i].who + '</div> </div> <div contenteditable="true" class="extra content">' + array[i].description + '</div> <div contenteditable="true" class="extra content">' + array[i].housing + '</div> <div contenteditable="true" class="extra content"> ' + array[i].location + '</div> <div class="extra content center aligned"><button class="ui green button write_changes">Записать</button></div> </div> </div> such 300 pieces I made their fields editable, but now I can't figure out how to transfer changes to the handler, 300 "Write" buttons, how to distinguish which one was clicked to transfer the edited fields from the card where this button is located? If you track the write_changes button through the class, all fields from all the cards will be overwritten, as it seems to me. You can submit as follows, there are cells in Exel, if you change the cell and click save, then everything is ok, here you can save a button under each card.