JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrap">
    <input id="test-1" type="radio" name="testing" checked />
    <input id="test-2" type="radio" name="testing" />
    <input id="test-3" type="radio" name="testing" />
</div>
<button id="start-stop">Start/stop</button>

JavaScript

var t;
    var running = false;
    $("#start-stop").click(function(){
        clearInterval(t);
        running = !running;
        if (!running) 
            return;
        t = setInterval(function(){
            $('.wrap input')
            .eq( ( $('input:checked').index() + 1 ) % 3 )
            .prop('checked',true);
        },1000);
    });