I’m serving up a page using ASP.Net. I have Add/Edit/Delete functionality of controls I’ve added dynamically using jQuery on a page, some of which have related records in a database. Where is the best place to put the id (primary key) for these, an attribute, data-*, jQuery.data()? Should I be concerned if the Id is visible client-side?
I’m serving up a page using ASP.Net. I have Add/Edit/Delete functionality of controls I’ve
Share
Best practice is to use jQuery.data(), as this follows the HTML5 standard for such information.