Sreejith S S
Sreejith S S

Reputation: 109

Jquery selector in Jsoup

Is it possible to use selector like the below syntax in Jsoup? Example : - $("#test") I have tried using the same and getting the Could not parse query exception

Upvotes: 0

Views: 178

Answers (1)

Krystian G
Krystian G

Reputation: 2941

Just use document.select("#test").

EDIT: There's no way to use jQuery expressions. Jsoup advertises jquery-like methods.

Upvotes: 1

Related Questions