# jQuery r.getClientRects is not a function

**URL:** <https://forums.creativeclouddeveloper.com/t/jquery-r-getclientrects-is-not-a-function/5011>\
**Category:** UXP Developer Tool\
**Tags:** uxp, javascript\
**Created:** [July 25, 2022, 6:43pm UTC](https://forums.creativeclouddeveloper.com/t/jquery-r-getclientrects-is-not-a-function/5011 "2022-07-25T18:43:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ALEX2](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/alex2/32/2270_2.png) [@ALEX2](https://forums.creativeclouddeveloper.com/u/ALEX2)\
**Post date:** [July 25, 2022, 6:43pm UTC](https://forums.creativeclouddeveloper.com/t/jquery-r-getclientrects-is-not-a-function/5011/1 "2022-07-25T18:43:29Z")

</div>

![error](https://us1.discourse-cdn.com/flex015/uploads/xdplugins/original/2X/5/5b465ffa55c1e7c913e10ad86831a66bf1e997ec.jpeg)  
Processing: face.png…Processing: jquery.facedetection.min.js…  
[jquery-3.2.1.min.js](https://forums.creativeclouddeveloper.com/uploads/short-url/2ktLnlAnV48GY57mo4mhinCHjOi.js) (84.6 KB)

```auto
<!DOCTYPE html>
<html>
<head>
  <script src="jquery-3.2.1.min.js"></script>
  <script src="jquery.facedetection.min.js"></script>
  <script src="index.js"></script>      
</head>
<style>
  body {
    color: white;
    padding: 0 16px;
  }
  li:before {
    content: '• ';
    width: 3em;
  }

  #layers {
    border: 1px solid #808080;
    border-radius: 4px;
    padding: 16px;
  }
</style>
<body>
  <img id="picture" src="face.png">
</body>
<script>
  $('#picture').faceDetection({
      complete: function (faces) {
          console.log(faces);
      }
  });   
</script>
</html>

```
