jQuery: this.attr() not a function?

Use: $(this).attr instead of this.attr

This forces it into the context of jQuery.

Leave a Comment