Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
タイトルの通り、"alt" のテキストを取得したいのですが、Htmlparser の ImageTag にメソッドがありません。
jquery では、以下を使用できます。
var TextAlt = $('img').attr('alt');
Java の場合:
for(Element imgElement : img) { String imgAlt = imgElement("alt"); }