get all divs which has class attribute
$('div[class]')
get all divs which do not have class attribute
$('div[class!=""]')
This code works but I don't understand why it works. If the above code works then the code for all divs with class attribute should be
$('div[class=""]')
which does not yield any result.
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…