如何知道Jquery当前网页中存在多少特定类型的元素?
-
06-07-2019 - |
题
有很多<label name="delQ" style="cursor:pointer">Remove</label>
网页中的元素;元素是动态创建的。如何确定多少<!>“delQ <!>”;存在于当前网页中?
$('[name="delQ"]').live('click', function() {
//Get the number of name="delQ" in the current web page.
});
如何在Jquery中完成?
解决方案
不隶属于 StackOverflow