How do I grap the href URL from HTML markup and store it in a variable?
Hi there, I'm using Jquery Mobile and I'm using this piece of code:
$('#putcontent').html(output)
I'm using it to put content into a data-role="content" area with an id of "putcontent". The 'output' is a small amount of HTML markup. Inside this HTML, at the end, is an anchor tag.
So here's my question - how do I grab just the URL from the href and store it in a variable?
Thanks for your help.