Welcome aboard! We are happy you are here and wish you good net-raft!
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function MyChange() {
var myString = document.getElementById("MyInput");
var numeric_alpha = /^(?=.*[a-zA-Z])(?=.*[0-9])/;
if (myString.value.match(numeric_alpha)) {
alert("it's ok!");
}
else {
alert('Please type numeric and alphabetic characters!');
}
}
</script>
</head>
<body>
Type numeric and alphabetic characters <input type="text" id="MyInput"></p>
<button onclick="MyChange()">check</button>
</body>
</html>
The most helpful JAVASCRIPT solutions