I have the following problem: I'm using a video on my website and want to open it in a lightbox. My CMS doesn't give me the possibility to open just the one video within a lightbox, but I think the technical backgrounds are too much for this question so now what I want to do:

I want to look with jQuery for the Video within my link, like '.mp4">' this part I want to replace or extend with something like this: '.mp4" **data-lightbox="video">**'.

The first thin I tried is .replaceWith but I think it just works with classes or ids? Maybe the code was wrong?

```
$('.mp4">').replaceWith('.mp4" data-lightbox="video">');

```

I used the search for different methods, but I think most are for something like text-changes or changes of ids and classes...

What I'm looking for is something, that can handle with the HTML, so that it just replace or add the code, which is necessary.

Regards,
Markus

Edit: The HTML:

```
    <a title="title" href="/files/videos/abc/abc.mp4">
<img alt="title" src="assets/images/f/abc.png">
</a>

```