如何在jQuery中给出div ID和类的情况下识别div? [英] how to identify the div withiut giveing div id and class in jquery?
本文介绍了如何在jQuery中给出div ID和类的情况下识别div?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的div,我不给div id和class ...然后如何在jquery中识别div
请帮助我......................................
this my div i am not giving div id and class...then how to identify the div in jquery
please help me..........................
推荐答案
(document).ready(function(){
(document).ready(function () {
("div").each(function(){
var div_id = this.id
});
});
试试这个
("div").each(function () {
var div_id = this.id
});
});
try this
这篇关于如何在jQuery中给出div ID和类的情况下识别div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文