![http://i.imgur.com/p9ZkeIk.png](https://i.stack.imgur.com/jOYdH.png)

I create a search engine and I have a problem. 

```
<div class="singleresult" onclick="benger()">
<img class="profilepic" src="http://graph.facebook.com/'+this.id+'/picture"  alt="Smiley face" height="50" width="50">
<p class="name">'+this.name+'</p> 
<p class="tapto" algin="right">TAP TO UNLOCK</p> 
</div>

```

how to get the name value by clicking on the div? 
They have all the same classes