JSFiddle - React, Tailwind, and code Playground

by borisjavier

HTML

<form method="POST" id="form-pass">
<input type="text" id="add" value="qrn7ttm78cx8r9vevlydrxhtgy0y0wr80czdltda30">
<input type="text" id="amount" value="0.0123">
<input type="button" id="tot" value="Hagale Pues" onclick="checkForm()">
</form>

JavaScript

var button = document.querySelector('#tot');
//var pws = document.querySelector('#add');
//add.focus();
button.onclick = checkForm;
var query = '{  "v": 3,  "q": {         "db": ["u"],         "find": {"out.e.a": "'+add.value+'", "out.e.v": '+amount.value+'},       "limit": 10   }}';
function checkForm() {
 
  alert(query);
}