Skip to content
Justice Tech School

Basic Selectors

jQuery uses CSS selectors: tag names, #id and .class.

Example
$('p');
$('#main');
$('.item');
$('*');

Exercise

Select by id.

$('main')

Quiz Test

How do you select by class?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.