jsoup - get selected option from html select's options

jsoup

Solution

You can do this:

Elements selected = doc.select("select option[selected]");

Modify the first `select` part of the CSS query to winnow to the specific option container you need.

Try it out with your HTML.

Problem

Does jsoup provide any way to get the selected option from an HTML select? Something like jQuery's :selected

Original source