Multiple choice technology web technology

Basic syntax of jquery?

  1. (selector).action()

  2. $(action).selector()
  3. $(selector).action()
  4. selector.action()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The basic jQuery syntax is $(selector).action(), where $ is the jQuery alias, selector identifies HTML elements using CSS syntax, and action() is the jQuery method to perform. This pattern is consistent throughout jQuery: first select elements, then perform actions on them. Option B reverses the order, while A and D miss the $ symbol or parentheses.