I would like to get all the attribute properties with a Jquery event. I know I can retrieve info of the element by doing something like this:
$(this).attr('id');
So if I want to include the class I would do something like this:
$(this).attr('id');
$(this).attr('class');
However I want to shorten/simplify the code as much as possible, so I was wondering whether I could get all the attribute properties at once without specifying them first. Is there a way to do this? Maybe a plugin?