I am trying to create a share on twitter link that grabs the href and text from the first (or previous) href in the div. I have multiple divs on the page so rather than write a script unique to each div id, I'd like the code to get the data from the div in which the link that is clicked sits and puts them in variables. How would I do this? The hrefs don't have ids.

```
<div id="genericID">
<a href="www.google.com">This is not a sentence.</a> 
<a href="https://twitter.com/share">Share on Twitter.</a> 
</div>

```