Data attribute value updated by jquery is not visible in DOM

When you use .data() to update a data value, it is updating internal object managed by jQuery, so it will not be updated in the data-* attribute

Leave a Comment