So I do know that it is possible to have two onclick events in one element. But I'm not sure how to do it exactly for my situation. Is there another way of doing this that I'm not trying? I'm trying to add the ShowAlert() method.

My code looks like this:

```
<button class="btn btn-primary" @onclick="e => AddToCart(context)">Add To Cart</button>

```

And I have tried(I get an error every time I try these):

```
<button class="btn btn-primary" @onclick="e => AddToCart(context); ShowAlert();">Add To Cart</button>

```

and:

```
<button class="btn btn-primary" @onclick="ShowAlert(); e => AddToCart(context)">Add To Cart</button>

```

Here is my ShowAlert method in case it is needed:

```
@code
{
    async Task ShowAlert()
    {
        await JsRuntime.InvokeVoidAsync("createAlert");
    }
}

```

Any help/advice is appreciated! Thank you!