Good Days Guys. How do I count the checked checkbox in real-time? I have these button labeled Transfer Students and I want the user to know how many students are currently checked (since our classrooms are size sensitive)
<button
wire:click="editModal()"
class="bg-blue-500 hover:bg-blue-300 text-white font-bold py-2 px-4 border-b-4 border-blue-700 hover:border-blue-500 rounded">
Transfer Student($count of selected students)
</button>
<input type="checkbox" wire:model="selectedStudents.{{ $stud->id }}">