The documentation for jquery's closest says the following:
.closest( selector [, context ] )
...
context Type: Element A DOM
element within which a matching element may be found. If no context is
passed in then the context of the jQuery…
I am following this tutorial [chart.js][1] and I get this error and this line
var ctx = $("#myChart").get(0).getContext("2d");
where $("#myChart") stands for
throws this error
Uncaught TypeError:…
Possible Duplicate:
Performance of jQuery selector with context
In the jQuery DOCS it says
By default, selectors perform their searches within the DOM starting
at the document root. However, an alternate context can be given for
the search…