Source: http://www.developphp.com/video/JavaScript/Custom-Data-Attributes-HTML-JavaScript-CSS-Tutorial
Learn to use custom data attributes. Custom data attributes allow authors to create custom data to apply to their HTML elements when no other attributes make sense to use to store extra data. They help extend the information that html elements can communicate to a program or script. Custom data attributes can be accessed through both JavaScript and CSS.
Original source
26 responses to “Custom Data Attributes HTML JavaScript CSS Tutorial”
So well made. Outstanding. The pacing is quick, but you learn so much.
I hope you understand my english, It was an excelent and amazin example. I will learn more javascript code from your videos, I understood very well thanks a lot.
Do you also have a example of this using it with jQuery?
Intuitive! You explain all your videos better than anyone on youtube!
Excellent
Thanks a lot, i like your videos very much.
nice!
awesome!
(data-rocket-distance) is this rocket a fix dataset ?
thanks man ,great tutorial :*
Wow, that it is so easy. Didn't knew that. Thanks a lot!
hello,Adam. do you think you can show how to script dropdown list with java, Ex: B, drop down list only show option when dropdown list option A is selected.Thanks for great videos.
Hey Adam, nice tutorial.
I was wondering, if you could do a video showing how to make a login script and display hidden content just for logged users.
you are great .. thanks a lot
Thank you.
whaaaaaaaat
what text editor are you using
Thank you, Adam! Great video!
any difference between this and jquery attr?~
Wow, that's sweet. I never never thought of using data-* for animation. Thanks, Adam.
I wonder what processing power cost is like on those animations. I'll have to google it and find out how to measure it.
Great example of this !
Love the pace of these and how you explain everything in a good amount of detail. I wish you did .NET videos as well xD
wow amazing! always new knowledge for me! THANKS A LOT!!
as always: you are my hero…the one and only. thank you for your guidance.
Just for inspiration to the viewers: Another good use of the data-attribute that I tend use very often is in a table that is fed off a database. If you attach for example data-id to the table row tag you can access the id of the mysql-entry – which is very helpful if you want to place a edit or delete button which then affects only a certain row within the table… Nice video again. Sir Adam… 🙂
Hey Adam. I've always wanted to be the first to watch one of your videos and give you a thumb up, and I think I'm lucky today. A BIG THUMB UP!!!