The Lodge is members-only web design and development videos and live help. Log In or Sign Up.
I am trying to work out how to check if a UL DOES NOT contain a li … then if it is, add a message to say “sorry this is empty”.
This should do the trick
Super minor optimization: http://codepen.io/ggilmore/pen/biehl
Ah yes, this is why I refactor my code, I always miss ! vs ==0
Perfect guys. Thanks so much for your help.
I’m new to jQuery but very quickly realising the possibilities it opens.
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed