JSFiddle - React, Tailwind, and code Playground

by joeterry

HTML

<input id="box" />

JavaScript

$(function() {
    var box = $('#box');
    
    box.on("change", function() {
        $(this).css("border", "1px solid red");
    });
    
    box.val("systematically changed").trigger("change");
});