Is it possible to loop through a data() object?
data()
Suppose this is my code:
$(\'#mydiv\').data(\'bar\',\'lorem\'); $(\'#mydiv\').data(\'f
$.each($.data(this), function(i, e) { alert('name='+ i + ' value=' +e); });
This will iterate through each property in 'this' element's data object.