Go Back   CodingForums.com > :: Client side development > JavaScript programming > DOM and JSON scripting

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-23-2004, 08:46 AM   PM User | #1
FLC
New to the CF scene

 
Join Date: Nov 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
FLC is an unknown quantity at this point
Unhappy help needed to separate this single string to 3

108844390 A 499GH33


I have a single string like above and I would like to separate it to 3 strings,

I want it to be able to get something like this

108844390
A
499GH33

How do you do this using indexof() functions?
FLC is offline   Reply With Quote
Old 12-23-2004, 11:25 AM   PM User | #2
d11wtq
Regular Coder

 
Join Date: Dec 2004
Location: Manchester, UK
Posts: 134
Thanks: 0
Thanked 0 Times in 0 Posts
d11wtq is an unknown quantity at this point
Code:
parts = string.split(' ') //split at a space character
// so parts[0] = 108844390 and parts[1] = A and parts[2] = 499GH33
d11wtq is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:04 PM.


Advertisement
Log in to turn off these ads.