Bid Summary
I have posted comment on stackoverflow, There is main problem is you are pick-up the value from data-* attribute so it will always pick old value because of when DOM initialize that time stored.
Project Requirements
I have expertise in jQuery, Mobile jQuery, Javascript, Html5, CSS3 and Bootstrap.
Relevant Skills and Experience
>> PSD to HTML Conversion
>> Twitter Bootstrap 3+
>> Mobile jQuery
>> Responsive HTML Designing
>> Responsive Email Template
>> Site Speed Optimization
>> Intel XDK
Proposed Milestones
$15 USD - After Done then release
Do you know whats causing the problem explained in the link ?
when dom initialize to ready then data-* attribute value stored in dom so you can instead of data-* to attr. I hope it will help you.