JSFiddle - React, Tailwind, and code Playground

by s4ty

HTML

<input id="check_slider"/>

JavaScript

$(function() {    
        var once = true;    
        $('#check_slider').keyup(function () {        
            if($(this).val() == 3 && once) {
                once = false;
                alert('Value: '+ $(this).val())
            }        
        })   
    });