// parse submit key Document doc = Jsoup.parse(html); Element element = doc.select("input[name=FORM_NAME]").first(); String name = element.attr("name"); String value = element.attr("value");