I have stored a string value from text box in a var variable.
Now i want to split the string to an array, and want check for each element in that. split method could not work, because there is no delimeter. It is just a word. Example code is,
var str = document.getElementById("txtName").value;
if str stores "test", i want to store that in an array as 't','e','s','t'
can anybody help me