Php on csv and Jquery Datatable
===

I struggling with a problem for a day but could not come up with a good idea how to handle the following: I have a parsed CSV file what I'm rendering in a Jquery datatable. To each row is appended a checkbox. If rows are selected and submitted, the selected lines from CSV file should be deleted. My problem is how to give an id to CSV lines what would be unique even if a row is deleted or others are added. Should be managed with PHP or there would be a better solution with Jquery? 