I am trying to add a data type to an A tag by using jQuery

here is the HTML

```
<div class="asset-manager-button">
    <div>
        <a class="uk-position-cover"></a>
    </div>
</div>

```

here is the jQuery i thought would work

```
$('.asset-manager-button .uk-position-cover').appendTo('data-uk-scrollspy-nav="{smoothscroll: {offset: 90}, closest:'li'}"');

```

and here is what i would like to achieve

```
<div class"asset-manager-button">
  <div>
    <a class="uk-position-cover" data-uk-scrollspy-nav="{smoothscroll: {offset: 90}, closest:'li'}"></a>
  </div>
</div>

```