|
-
Nov 8th, 2000, 03:18 AM
#1
Thread Starter
Hyperactive Member
Dear all,
How does one search for occurence of a character in a string in Javascript. I would like to know more about the string manipulation functions of Javascript.
-
Nov 8th, 2000, 10:57 AM
#2
Frenzied Member
indexOf() is what you want
eg:
Code:
var strTemp = "Mark Sreeves";
document.write(strTemp.indexOf("r"));
http://www.irt.org is an excelent resource and should answer 96.7% of your javascript problems
(you can even download the whole site to your hard drive for browsing of line)
-
Nov 11th, 2000, 01:46 PM
#3
Thread Starter
Hyperactive Member
Thanks Mark http://www.irt.org solved more than 96.7% of my problems. Thanks again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|