JSFiddle - React, Tailwind, and code Playground

by darioferrer

HTML

<form method="post" action="" onsubmit="return something();">
	<input type="number" id="endNo" name="endNo" placeholder="END" min="5" max="20">
	<input type="submit" name="name" value="REGISTER" onclick="this.disabled=true;">
</form>

JavaScript

function something() {
	var v = document.getElementById( "endNo" ).value;
	alert( "The value is " + v );
	return false;
}