What is the fundamental difference between using $(this) vs this
$(\'.viewComments\').click(function(ev){ //returns the desired value alert(this.getA
$(this) - represent current DOM element on which event this function is called
The this keyword - In JavaScript this always refers to the “owner” of the function we're executing, or rather, to the object that a function is a method of.