JSFiddle - React, Tailwind, and code Playground
by fakhruddin
HTML
<input type="text" id="nominee_one_name">
JavaScript
$(document).ready(function () {
$('#nominee_one_name').keyup(function() {
var $th = $(this);
$th.val( $th.val().replace(/^[^}{\[\]\"]+$/g, function(str) {
return ''; } ) );
});
});