Hi Guys,
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".
Any ideas?
This should do the trick http://codepen.io/karlpcrowley/pen/JboEi
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.
Hi Guys,
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".
Any ideas?
This should do the trick http://codepen.io/karlpcrowley/pen/JboEi
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.