Button to uncheck alert checkbox

I’ve a button with the function: uncheck(). When the user clicks the button, I need the checkboxes in alert to be cleared. I didn’t find anything related to clearing checkboxes in alerts.
This is my TS:

function uncheck()
{for (i = 0; i < alert; i++)
if (alert[i].type = = “checkbox”)
alert[i].checkbox = “false”;

Help me?

I’m not sure I understand what you’re talking about, but whatever it is, I don’t think it’s possible.

Possibility A:
This button lives in the same alert as the checkboxes. Can’t happen, because there can be only one type of input in an alert.

Possibility B:
The button is somewhere else. Not possible because alerts monopolize focus, so the button can’t be clicked.

Either way, this goes way beyond what I would consider appropriate use for an alert. I would suggest making your own modal instead of using an alert.