JSFiddle - React, Tailwind, and code Playground

HTML

<a id="test0">test0</a> 

<div class="container">
    <a id="test1">test1</a> 
    <a id="test2">test2</a>   
    
    <select id="test3">
        <option>1</option>
        <option selected="selected">2</option>
        <option>3</option>
    </select>
</div>

JavaScript

$(function() {
    // handlers
    $('body').on('click',  '#test0', function() { console.log('test0'); });
    
    $('body').on('click',  '#test1', function() { console.log('test1'); });
    $('body').on('click',  '#test2', function() { console.log('test2'); });    
    $('body').on('change', '#test3', function() { console.log('test3'); });

    // we are trying to remove all handlers in .container
    $("body").off( ".container" );

});