Here you can find the source of getDivForClass(Document document, String className)
static Elements getDivForClass(Document document, String className)
//package com.java2s; //License from project: Apache License import org.jsoup.nodes.Document; import org.jsoup.select.Elements; public class Main { static Elements getDivForClass(Document document, String className) { return document.select("div[id= " + className + "]"); }/* ww w. j av a2s. co m*/ }