JSFiddle - React, Tailwind, and code Playground
by svierkant
HTML
<div class="step1">
<p><button>Test</button></p>
<p><button>Test</button></p>
<p><button>Test</button></p>
<p><button>Test</button></p>
</div>
<div class="step2">
<p><button>Test</button></p>
<p><button>Test</button></p>
<p><button>Test</button></p>
<p><button>Test</button></p>
</div>
JavaScript
jQuery("button").on('click', function ()
{
$(this).parent().parent().find('button').prop("disabled", true);
});