JSFiddle - React, Tailwind, and code Playground

by Radonirina Maminiaina

HTML

<h1> Neue Station hinzufĂĽgen</h1>
        <form id="stationenformular" name="stationenformular" action="indexAktualisierung.html"  method="get">
            <div>
                <label for="bezeichnung">Bezeichung der neuen Station:</label>
                <input type="text" value="test value" id="bezeichnung" name="bezeichung" />
            </div>
            <br><br>
            <div>
                <label for="ipadresse"> IP Adresse des  Raspberry Pi:</label>
                <input type="text" id="ipadresse" name="ipadresse"/text> 
            </div>
            <div>
            <br>
            <input type="submit" value="Abschicken" id=""/>
            </div>
        </form>

JavaScript

var x = document.getElementById("bezeichnung");
var btn = document.createElement("BUTTON");    // Create a <button> element
btn.innerText = x.value;                            // Append the text to <button>
document.body.appendChild(btn);