JSFiddle - React, Tailwind, and code Playground

by gryzzly

HTML

<input value="foo">

JavaScript

$('input')
    .bind('change', function() {
        alert('fire!');
    })
    .val('bar');


setTimeout(function() {
    $('input').val('foobar');
}, 1000);