JSFiddle - React, Tailwind, and code Playground

by kiokotzu

HTML

<button value="hola" id="boton">hola</button>

JavaScript

$(function(){
    $('#boton').click(function(){
        $(this).attr('value','cambio_nombre');
        alert('Nuevo nombre del value:  '+ $(this).attr('value'));
    });
});