make use of jQuery's data() function

as @Klap-in suggested