$ - jQuery function object or jQuery alias (more precisely, jQuery function and each function in javascript is an object). see What is the meaning of the $ character in jQuery?
$.highlightResults => highlightResults is a property of jQuery object.
By defining any function as a property of a jQuery function object, you can access jQuery and all the jQuery 'this' properties / functions associated with it inside your function.
A simple example.
$.property1 ='a'; $.property2 ='b'; $.highlightResults = function(){ var concat = this.property1 + this.property2; };
All about code organization and behavior.
If you define
function highlightResults(){xyxyxy;}
it is not a jQuery function object property and is located in GLOBAL space
source share