On Jun 11, 7:30 pm, "Erik Beeson" <[EMAIL PROTECTED]> wrote:
> jQuery always returns a jQuery object, regardless of whether it finds
> anything or not. To see if anything has been selected, use last.length or
> last.size() being greater than 0. This is by design so chaining won't break
> if noth
jQuery always returns a jQuery object, regardless of whether it finds
anything or not. To see if anything has been selected, use last.length or
last.size() being greater than 0. This is by design so chaining won't break
if nothing is selected:
$('.someSelector').addClass('highlighted');
Will add
2 matches
Mail list logo