I use .data for storing values instead of accessing DOM elements. I realized and found a better and faster way of it. In fact I have been using
for a while now.
Check out following/ these cases-
The other way for the same is as -