var ul = $('#ul_id'); if ($('.class1, .class2', ul).size()>2)
you do not need to check the first condition (has more than two children), since this is an AND condition, and if your second condition satisfies, the first condition is trivial.
James lin
guanfenglin@gmail.com
James lin
source share