I want to implement a feature where the CSS class of a div element changes when clicked. The default class should be 'input-large', and on click, it should change to 'input-large input-active'. This change should occur when clicking on the username field and revert back when clicking elsewhere.
<div class="input-large">
<label class="input-label">Username</label>
<input class="input-field" type="text">
</div>
<div class="input-large input-active">
<label class="input-label">Username</label>
<input class="input-field" type="text">
</div>
Can someone guide me on how to achieve this div change on click?