JSFiddle - React, Tailwind, and code Playground

by S.M. Murad Hasan Tanvir

HTML

<input class="input-value" id="sifre_text" type="text" />
<input class="input-value" id="sifre_tekrar_text" type="text"/> 
<div id="sifre_check">
</div>

CSS

#sifre_check {background-color: red; width:450px; height:350px}

JavaScript

$(function(){
    $(".input-value").on("change", function(){
        var a = $("#sifre_text").val();
        var b = $("#sifre_tekrar_text").val();
        if(a == b)
            $("#sifre_check").css("background-color", "yellow");     
    });
})