Hey,
I have a html table in my page that I populate with items from a database with jquery. Now i was wondering what's the best place to store your item Id? I'll need it later to do delete and update.
Here are some of the options I was thinking about:
- TR tag
- Hidden field
- Checkbox (In my page you can do a bulk delete by checking the checkboxes and then clicking on the delete button).
- ...
Also what naming should I take. Do I just do id="1", id="2", ... or is it better to put some text infront of the record id? Like id="ItemRow1", id="ItemRow2", ...
Or is there some other better technique for storing ID's?
Thanks in advance.