I am working with AJAX with prototype and PHP. It is working for me but I need some small changes. Following is my running code for AJAX request:

**JS/Prototype:**

```
function ajaxRequest(url) {

    new Ajax.Request( url, {

          method: 'get',
          onSuccess: function( transport ) {

            // get json response
            var json = transport.responseText.evalJSON( true );
            alert(json);
        },     
        onFailure: function() {             
            alert('Error with AJAX request.'); 
        }  
    });

    return false;
}

```

**HTML:**

```
<a href='javascript:ajaxRequest("/testajax/ajaxresponse");'>Testing AJAX</a>

```

**Question:**

Now I want to change my link like this:

```
<a href='/testajax/ajaxresponse' class='AjaxLink'>Testing AJAX</a>

```

So prototype function should capture click event of `class='AjaxLink'` links and then get href part of clicked link and proceed. How can I change my above prototype function for such kind of links.

Thanks