I have the following code as a header menu to define data to be fetched with ajax into a different div when the user clicks into one of the buttons.

```
<div class="btn-group btn-group-devided" data-toggle="buttons">

    <label class="btn btn-transparent grey-salsa btn-circle btn-sm active">

    <input type="radio" name="options" class="toggle" id="option1">Day</label>

    <label class="btn btn-transparent grey-salsa btn-circle btn-sm">

    <input type="radio" name="options" class="toggle" id="option2">Week</label>

    <label class="btn btn-transparent grey-salsa btn-circle btn-sm">

    <input type="radio" name="options" class="toggle" id="option3">Mont</label>

</div>

```

I also plan on using **setInterval** to automatically refresh data every few minutes. My question is: how to identify the currently selected option using the **label class active** as an identifier? How would **getElementsByClassName** be used for this situation?

I was considering getting the innerHtml and then using an if condition in the ajax processing.

Thanks!