Data attributes on IE 9 and older not working on certain instances

212 views Asked by At

I have four buttons(divs). After I click on one of them the data attributes work and does not work for other three. I am setting two values(data-attributes) in click event handler and in callback to this event reading these value. It is working fine on Chrome and Firefox so the logic is fine. The weird thing is, once I go to developer tools in IE and use jquery to read the data-attributes. All four buttons start working.

0

There are 0 answers