Jqueryの現在のWebページに特定の種類の要素がいくつ存在するかを知る方法は?
-
06-07-2019 - |
質問
多くの<label name="delQ" style="cursor:pointer">Remove</label>
があります
Webページの要素。要素は動的に作成されます。 <!> quot; delQ <!> quot;の数を決定する方法。現在のWebページに存在しますか?
$('[name="delQ"]').live('click', function() {
//Get the number of name="delQ" in the current web page.
});
Jqueryでそれを行う方法
解決
所属していません StackOverflow