JSFiddle - React, Tailwind, and code Playground

by zono

HTML

<form>
            Matrix 1: <input type="text" id="m1" name="mat1" style="width: 500px"><br>
            Matrix 2: <input type="text" id="m2" name="mat2" style="width: 500px"><br>
            <input type="button" value="Calculate" onclick="calc();"><br><br>
            -Result: <input type="text" id="rez" name="mat2" style="width: 500px" readonly>
        </form>

JavaScript

function calc(){
                var matrix1string = document.getElementById("m1").value;
                var matrix2string = document.getElementById("m2").value;
            }