I have a basic script that allows me to click on the background of a website, excluding #content .
After upgrading jQuery version to version 3.1.0, I get this error: TypeError: $(...).parents(...).size is not a function .
<script type="text/javascript"> $(function() { $("#background").click(function(e) { if (e.target.id == "wrapper" || $(e.target).parents("#wrapper").size()) { </script>`
I do not know how to fix this. jQuery loads properly. Please, help.
source share