Here you can find the source of findAElementsWithId(Elements elements, String id)
public static Elements findAElementsWithId(Elements elements, String id)
//package com.java2s; //License from project: Open Source License import org.jsoup.select.Elements; public class Main { public static Elements findAElementsWithId(Elements elements, String id) { StringBuilder query = new StringBuilder(); query.append("a[id="); query.append(id);/*from ww w . j av a 2 s. co m*/ query.append("]"); Elements found = elements.select(query.toString()); return found; } }