Mitchell Cameron Mitchell Cameron - 5 months ago 40
Java Question

Get attribute from html with jsoup

There is a

<div id="content">
<form id="fm1" class="fm-v clearfix" action="/cas/login;jsessionid=B91535E9EB93313D6FADBA2C63D10EC2" method="post">

How to get the value of the action attribute:


Answer Source

You don't need to loop it you can simply call like this:

Elements test ="form");
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download