The sample code below is part of Keith Wood's jQuery Countdown plugin. Can someone explain this
_attachCountdown: function(target, options) {
var $target = $(target);
if ($target.hasClass(this.markerClassName)) {
return;
}
$target.addClass(this.markerClassName);
var inst = {options: $.extend({}, options),
_periods: [0, 0, 0, 0, 0, 0, 0]};
$.data(target, PROP_NAME, inst);
this._changeCountdown(target);
}
Is there a reason that specifically defines $ target or its just like our simple variables like var target.
Thanks in advance.
source
share