JSFiddle - React, Tailwind, and code Playground

HTML

<html>
<head>
</head>
<body>
    
  <div id="parent">
    <div class="child1">child 1</div>
    <div class="child2">child 2</div>
  </div>
  See browser console to see the isue.

</body>
</html>

JavaScript

var parent = $("#parent");
console.log("ok.. 2 children", $("#parent .child1, #parent .child2"));
console.log("ko.. 1 child", $("#parent .child1, #parent .child2", parent));
console.log("ko.. 1 child", parent.find("#parent .child1, #parent .child2"));