Javascript: How to Find Position of a Character in a String
Tuesday, October 18th, 2011Sometime you may need to find position of a character in a string, charAt() string method comes in for the purpose. For instance, when you execute the following code; var mystr = 'I am a test String.'; document.write(mystr.charAt(3)); // Result will be 'm'