Home » HTML » Html miscellaneous » Question
  1. In jQuery all the elements are selected by writing ____________.
    1. $(“:button”)
    2. $(“*”)
    3. $(“.class_name”)
    4. $(this)
    5. None of these
Correct Option: B

In jQuery all the elments are selected by writing $(“*”). $(this) helps in selecting current HTML element. All the button elements are selected by writing $(“:button”). If we want to select a specific class we should write $(“.class_name”).



Your comments will be displayed only after manual approval.