How to judge whether selected result is empty or not with jQuery?

jquery, jquery-selectors, resultset

Solution

use the length property:

$("#experiences tr").length

if it's 0 it's empty

Problem

``` $("#experiences tr") ``` For the above one,how to judge if it's empty or not? I thought its boolean value should be false,but seems not.

Original source