JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" name="kp1_description" value="Enter Keypress Description">
JavaScript
$(document).ready(function(){
var Input = $('input[name=kp1_description]');
var default_value = Input.val();
$(Input).focus(function() {
if($(this).val() == default_value)
{
$(this).val("");
}
}).blur(function(){
if($(this).val().length == 0) /*Small update*/
{
$(this).val(default_value);
}
});
})