|
-
Mar 12th, 2003, 05:24 AM
#1
Thread Starter
Member
Strings [Resolved]
How can I check to see if there is, or not, a comma (,) in a textbox value? (JavaScript)
Thanks!
Last edited by Evolute; Mar 12th, 2003 at 06:44 AM.
Evolute
-
Mar 12th, 2003, 06:32 AM
#2
Code:
function test(val){
str = new String(val);
return str.search(/,/); // -1 if not found
}
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
|