$(..).size() Error On jQuery 3.1 - Save My Knowledge
Saturday, February 4, 2017

$(..).size() Error On jQuery 3.1

Hi, maybe a little adjustment for jQuery 3.1 here, as you can see now $(..).size() already deprecated and cannot be used. If you are always using $(..).size() it would show up an error and the code after cannot be run. And the solution is to change the .size() into .length.
Here is the example:
$(..).length