How to check value in javascript variable for include number or not ?
eg: var test = "abcd1234";
this var test
include lower case and number.
How to use javascript to check var value include number or not ?
I tried to use isNaN
function
var test = "abcd1234";
var test = isNaN(test);
if(test === true)
{ alert("not include number");
else
{ alert("include number");
But this code alert not include number
because isNaN
will check all data of var. but i want to check only a part of var. How can i do that ?