need to take url , the href value, instead of text

i have had some code built for me, but i do not know how to edit it to get the url ahref value of the text..right now , it just takes the text

<description>current company</description>
Who is Participating?
Scott Fell, EE MVEDeveloper & EE ModeratorCommented:
Do you have something like this
<!DOCTYPE html>
<script src="//"></script>
      var x = $("a").attr("href");
       alert (x);
  <meta charset="utf-8">
<a href="">My Link</a>

Open in new window
Brian TaoSenior Business Solutions ConsultantCommented:
Uh............... I don't see any url or a href there?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.