how to put two id in one selector jquery code example
Example 1: 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>
Example 2: use two div id in jquery
<script>
$(function() {
$("#segement1,#segement2,#segement3").hide()
});
</script>
<div id="segement1"></div>
<div id="segement2"></div>
<div id="segement3"></div>