title: Jsoup get element in value=" "
body: <p>I want to find the element "buddyname" and get the element of value= "" in a HTML file which i put into a StringBuffer, in this case 5342test.
  The element in value= "" can change so i can not search directly for 5342test.</p>
  
  <pre><code>&lt;fieldset style="display:none"&gt;&lt;input type="hidden" name="buddyname" value="5342test"/&gt;&lt;/fieldset&gt; 
  </code></pre>
  
  <p>How can i do this with jsoup? or is there an easier way, I already tried Pattern/Matcher but that did not work out as i had issues with the <code>Pattern.compile("&lt;input[^&gt;]*?value\\s*?=\\s*?\\\"(.*?)\\\")");</code></p>
  
  <p>Below some example code.
  Thank you in advance.</p>
  
  <pre><code>Document doc = Jsoup.parse(page); // page is a StringBuffer
          Elements td = doc.select("fieldset"); 
  
          for (Element td : tds) { 
            String tdText = td.text();
            System.out.println(tdText);
          } 
  </code></pre>