JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="adress" name="adress" />
<input type="submit" id="submit" name="submit" value="odeslat"/>
JavaScript
$("#submit").click(function() {
if (/^(.*[^0-9]+) (([1-9][0-9]*)\/)?([1-9][0-9]*[a-cA-C]?)$/i.test($("#adress").val())) {
alert("tohle je adresa");
}else{
alert("tohle nenĂ adresa!!!!")
}
});