I have an `adrotator` on my Asp.net Master Page 

```
<asp:AdRotator ID="adr" AdvertisementFile="~/Adrotator.xml" Width="180px" Height="200px"
                 runat="server" Target="_self" />

```

I am using the following jquery for rotating ADS . However it is not able to detect the id of the Adrotator control

```
    $(document).ready(function () {

            setInterval(function () {
            $("[id$='adr']").load(location.href + "[id$='adr']", "" + Math.random() + "");
        }, 5000);

    });

```

Note: I already tried using `$("[id$='adr']")` and `$('[id$=\'adr\']')` and `'#adr'`

![enter image description here](https://i.stack.imgur.com/ZKFfP.png)