jquery click multiple elements same id code example
Example: multiple elements with same id jquery
<div id="x1">A</div>
<div id="x1">B</div>
<div id="x2">C</div>
<script>
console.log($('[id="x1"]'));
</script>
<div id="x1">A</div>
<div id="x1">B</div>
<div id="x2">C</div>
<script>
console.log($('[id="x1"]'));
</script>