Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. <div id="content">
  2. <form id="fm1" class="fm-v clearfix" action="/cas/login;jsessionid=B91535E9EB93313D6FADBA2C63D10EC2" method="post">
  3. </div>
  4.  
  5. Elements test = doc.select("form");
  6. System.out.println(test.attr("action"));
  7.  
  8. String action = doc.select("div#content form#fm1").first().attr("action");
  9. System.out.println(action);
  10.  
  11. Elements test = doc.select("div[id=content]>form[id=fm1]");
  12. for (Element x :test){
  13. System.out.println(x.attr("action"));
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement