Home » HTML » Html miscellaneous » Question
  1. What is the correct syntax of jQuery?
    1. action().(selector)$
    2. (selector)$.action()
    3. action().$(selector)
    4. $(selector).action()
    5. None of these
Correct Option: D

The basic syntax of jQuery is $(selector).action(), $ sign defines access of jQuery, (selector) is HTML element, action() is for the jQuery action that is to be performed. E.g. $(“h1”).hide(), this will hide all the <h1> elements.



Your comments will be displayed only after manual approval.