Skip to content
Justice Tech School

Debugging jQuery

Check selections with length and console.

Example
console.log($("#x").length);
console.log($("#x"));
$("#x").css("outline", "2px solid red");

Exercise

Is it found?

console.log($("x").)

Quiz Test

What does length 0 mean?

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