JSFiddle - React, Tailwind, and code Playground

by manishkumarshr

HTML

<input id="name"/>
<input id="save" type="button" value="save"/>

JavaScript

$("#save").click(function() {
    var toSave = $("#name").val();
    toSave = toSave + "\n\n" + "trailer";
    alert(toSave);
});