Skip to content Skip to sidebar Skip to footer

Target An Empty
  • I know this one must be a simple one for the jQuery gurus here, but I honestly have no idea how to accomplish it. I have the following HTML:
    &l

    Solution 1:

    Use the :empty psuedo-selector.

    $('li:empty').addClass('empty')
    

    Post a Comment for "Target An Empty
  • "