JSFiddle - React, Tailwind, and code Playground

by navyflower

HTML

<input/>

JavaScript

jQuery(document).ready(function($) {
    $("input").mouseenter(function() {
            $(this).val("hello");
            $(this).prop('disabled', true);
     });
     $("input").mouseleave(function() {
            $(this).val("");
     });

});