JSFiddle - React, Tailwind, and code Playground

by neonms92

HTML

<input/>
<br/>
<span/>
<hr/>
<input/>
<br/>
<span/>
<div class="main">

JavaScript

debugger;
$('input').on('keypress', function(e) {
    $('span').html(e.which + " - " + String.fromCharCode(e.which));
});
jQuery.each(jQuery.browser, function(i, val) {
  $("<div>" + i + " : <span>" + val + "</span>")
            .appendTo( $('div.main') );
});