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.