JSFiddle - React, Tailwind, and code Playground

by denislexic

HTML

<input type="text" onChange="saveInput()" />

JavaScript

function saveInput(data)
{
    console.log(data);
    $(this).after("<img class='loading' width='20px' src='/resources/img/loading.gif'/>");
    var status = data.status;
    if(status === "begin")
    {
        
    }
    if(status === "complete")
    {
        $(this).removeClass('si_changed'); $(this).css({'color':"red"});
    }
}