1. Home
  2. Computer Science MCQs
  3. Jquery
  4. What does the jQuery selector $('.item') select?

Added 2 Nov 2026

What does the jQuery selector $('.item') select?

  1. All elements with class 'item' Correct answer
  2. Only the first 'item' element
  3. The element with id 'item'
  4. All <item> tag elements

Correct answer

A. All elements with class 'item'

13 views

MCQSEXAM

Explanation

jQuery selectors follow CSS syntax: .item selects by class, #item by id, and item by tag name.

Reference

Asked in: Frontend Developer Tests, Technical Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More Jquery MCQs

Practise all Jquery MCQs

Similar MCQs