How to get value of href in Jquery

Posted by user342391 on Stack Overflow See other posts from Stack Overflow or by user342391
Published on 2010-06-03T12:44:29Z Indexed on 2010/06/03 12:54 UTC
Read the original article Hit count: 146

Filed under:
|

I am trying to grab the value of my href in jquery how is it done'?

This is what I have done:

$('#playbackbutton').click(
      function() {
         $("#playbackdiv").load("$('a:href').val();", [], function(){
               $("#playbackdiv").dialog("open");
            }
         );
         return false;
      }

I need to get the value of the href in my a tag.

here is the html:

<a href="/record/123.wav">play</a>

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about value