jQuery Multiple ID selectors

Today, We want to share with you jQuery Multiple ID selectors.In this post we will show you jquery select multiple elements with same class, hear for JQuery Selectors Examples to find elements in DOM we will give you demo and example for implement.In this post, we will learn about Multiple Selector (“selector1, selector2, selectorN”) with an example.

jQuery Multiple ID selectors

There are the Following The simple About jQuery Multiple ID selectors Full Information With Example and source code.

Read Also:  Laravel If Else and Switch Case

As I will cover this Post with live Working example to develop jQuery multiple elements Selector, so the jquery multiple ids same function for this example is following below.

jquery multiple id selectors on click



      <title>The Selecter Example</title>
      <script type = "text/javascript" 
         src = "https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js">
      <script type = "text/javascript" language = "javascript">
         $(document).ready(function() {
            $(".big, #div3").css("background-color", "green");
      <div class = "big" id = "div1">
         <h1>This is first division of the DOM.</h1>

      <div class = "medium" id = "div2">
         <h2>This is second division of the DOM.</h2>

      <div class = "small" id = "div3">
         <h3>This is third division of the DOM</h3>

Web Programming Tutorials Example with Demo

Read :

Read Also:  Laravel Blade Layouts Folder Structure


You can also read about AngularJS, ASP.NET, VueJs, PHP.

I hope you get an idea about jQuery Multiple ID selectors.
I would like to have feedback on my infinityknow.com blog.
Your valuable feedback, question, or comments about this article are always welcome.
If you enjoyed and liked this post, don’t forget to share.

Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  jQuery Multiple Class Selectors Match Examples
  2. Read Also:  Jquery Fancybox Popup Simple Example
  3. Read Also:  HTML input time with 24 hours format
  4. Read Also:  Get first and last value of ul li using jQuery
  5. Read Also:  Role based access control using Laravel 5.7 Example
  6. Read Also:  Redirecting a Web Folder Directory to another Directory in htaccess
  7. Read Also:  ng click Event Function with Parameters using Angular Example
  8. Read Also:  Wordpress Advanced Search query custom fields
  9. Read Also:  Simple bootstrap responsive calendar Example
  10. Read Also:  ng click Event Function with Parameters using Angular Example