I am trying to check only alphabet in textbox(like XYZ) and any alphanumeric or special character value not entered. But my function only check numeric value and one more condition applied, if i pass alphanumeric value or special character in the textbox with alphabet or without alphabet then it will be not accept the textbox value. So please help me..
<script>
function Enable() {
var txt = document.getElementById("textbox");
if (!isNaN(txt.value) || txt.value == "") {
alert("Blank or numeric value");
}
else
alert("Not numeric value");
}
</script>
<input type="button" onclick="Enable();" value="Add" />
<input type="text" id="textbox" />