Updating HTML data attribute correctly but changes not being displayed on page
The data isn't stored on the element (use attr or prop for that). Instead jQuery maintains it in $.cache.
The data isn't stored on the element (use attr or prop for that). Instead jQuery maintains it in $.cache.