What is JQuery Selectors

In this article I am going to explain about jquery selectors.
  • 2028

jQuery Selector

For work with Html element in jquery selector is must because selection specifies on which element element you want to perform action. Selection element may be single element, several element or all element in document.


All selection start as follow.


There are several selection type that are following.

  Select all element
  Select current html element.
  Select all <p> element
  Select element where id="mm".
  Select <p> element which id="mm".
  Select element where class="cls".
  Select <p> element with class="cls".
  Select all animation that are currently animated.
  Select all button element.
  Select all element with href attribute.
$("ul li:first")
  Select first <li> of <ul> element.
  Select all href attribute that end with .jpg


In following example selection is $("*"). when we click on button then all element will be hide.



    <script type="text/javascript" src="jquery.js"></script>

    <script type="text/javascript">

        $(document).ready(function () {

            $("button").click(function () {








        my Jquery program</h2>




        How are you</p>






You may also want to read these related articles: here
Ask Your Question 
Got a programming related question? You may want to post your question here
© 2020 DotNetHeaven. All rights reserved.