I am developing locally in my windows using Netbeans IDE and tomcat, data attributes work fine in my local tomcat, but when I checked in my code in the Apache server, and took a look in source code, I found out that all data attributes are stripped from the code :
when I run my code locally (tomcat) : http://jsfiddle.net/mlotfi/b2y9Ls5o/
when I run it in Apache : http://jsfiddle.net/mlotfi/az68hkb0/
Thanks, your help is appreciated.