I am updating a data attribute by jQuery, Like:
jQuery('div').data('hidden', 'true'); alert(jQuery('div').data('hidden'));
Data attribute value got changed and returned new value which is true but DOM is still showing the old value which is false.
true
false