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: 
if you handle the click event, you will get the element in this variable. you can store it in a local or even a global variable to keep a reference to it. something like this:

outside of the event handler, maybe on load of the page:

```
var lastClickedElement;

```

and then inside your click event handler:

```
function() {
    lastClickedElement = this;
}

```

and then you have always a reference to the last clicked element.
I'm not sure I understand what you exactly want to do, but you can easily find the clicked element with an event listener, and do whatever you want with it:

```
$('a').click(function (e) {
    e.preventDefault();
    // ... Now 'this' refers to the element clicked
});

```

The passed `e` variable is a jQuery event, which contains all the information you need about the element clicked. `e.target` is the DOM node, which you could use to create a unique identifier yourself, if you absolutely need it.