JSFiddle - React, Tailwind, and code Playground

by janjhnsn

HTML

<input placeholder="lala" type="text"/>
<a href="#">text</a>

JavaScript

$(document).ready(function() {
    $('a').click(function(e) {
    e.preventDefault();  
$('input').attr('placeholder', 'lala2').blur();        
    //$('input').before('<input placeholder="lala2" type="text"/>').remove();
       
    });
});