multi id selector jquery code example

Example 1: jquery find multiple

var tds = $(this).find('input, textarea');

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>

Example 3: select multiple id in jquery

$("#upload_link,#upload_link2,#upload_link3").upload(function(){ });

Example 4: how to select multiple jquery element at once

// To select multiple html element at once using jquery, follow the syntax below
$("tagName1, tagName2, tageName3")
// The above code will select "tagName1", "tagName2", tagName3


// To select multiple element using "class name" follow the syntax below
$(".className1, .className2, .className3, .className4")

// To select multiple element using "id name" follow the syntax below
$("#idName1, #idName2")