Question: I have the value `0x4D79205465737420537472696E67` in a varchar(max) column in SQL Server. I want to convert it into binary value `0x4D79205465737420537472696E67` and retrieve the first 3 bits of the 0th Byte.

Any help would be appreciated, thanks.

Answer: 
Simply hold the element that has been clicked and store it. That would help you retrieve it later without explicitly defining an id attribute. 

HTML :

```
<a href="#a">Bar</a>
<a href="#b">Foo</a>

```

javaScript :

```
var clickedNode = [];
var counter = 0;

$("a").click(function(){
    clickedNode[counter] = $(this);
    alert(clickedNode[counter].text());
     counter++;
});

$("#lastValueButton").click(function(){
    alert(clickedNode[counter-1].text());
});

```

[**Demo**](http://jsfiddle.net/codeSpy/5JWMk/)
As the answer on you title question:

Following to [manual](http://api.jquery.com/category/selectors/) you can find links by it href like this:

```
$('a[href="/baz"]')

```

Also you can find elements that contains some text ([manual](http://api.jquery.com/contains-selector/))

```
$("a:contains('Bar')")

```