As explained here, to save state which must be accessible in different events, $$(this)
is recommended, like this:
$$(this).filters = "myvalue";
What does that syntax mean? Why $$
(double dollar)? Why this
? Why the ()
(parentheses)?
That code is not working for me anyway. I must use something like:
$.filters = "myvalue";
I would like to understand why the second form is working, and the first one not.