I have a string, and I need to get its first character.
var x = \'somestring\'; alert(x[0]); //in ie7 returns undefined
How can I fix my co
Looks like I am late to the party, but try the below solution which I personally found the best solution:
var x = "testing sub string" alert(x[0]); alert(x[1]);
Output should show alert with below values: "t" "e"