JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>js madness</title>
    </head>
    <body>
        <div id="a">
            <div id="b">
                <div id="c">
                .
                </div>
            </div>
        </div>
    </body>
</html>

CSS

#a{width: 150px; height: 150px;background-color: #008080;}
        #b{width: 100px; height: 100px;background-color: #3366FF;}
        #c{width: 50px;  height: 50px; background-color: #993366;}

JavaScript

// code I cannot change
$(function() {
    $('#a').live('click', function(e){console.log('a'); return false;});
    $('#b').live('click', function(e){console.log('b'); return false;});
    $('#c').live('click', function(e){console.log('c'); return false;});
});

// my code
$(function() {
     $('body').live('keydown',function(e) {
        if (e.which==13) { // e.which==13 is the enter key
            $('#b').die('click');
            $('#c').die('click');
            $('#b').live('click', function(e){console.log('gruik'); return false;});
        }
    });
});