htmlに所定の書式で追加できる属性がdata属性です。
□Before
$(this).attr(‘data-name’)
□After
$(this).data(‘name’)
参考
http://semooh.jp/jquery/api/internals/jQuery.data/elem,+name/
http://www.webopixel.net/javascript/414.html
htmlに所定の書式で追加できる属性がdata属性です。
□Before
$(this).attr(‘data-name’)
□After
$(this).data(‘name’)
参考
http://semooh.jp/jquery/api/internals/jQuery.data/elem,+name/
http://www.webopixel.net/javascript/414.html