Using jquery how do I find out the target value of a href link. e.g. if my link was
<a href="someurl.com" id="the_link" target="_blank">link</a>
the target would be _blank
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using attr()
Example on jsfiddle.