TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rameez Javed
NA
395
61k
Iterate through comma separated string, get each element.
Dec 18 2019 4:11 AM
Hi, I want to iterate through comma separated string, want to get each element but in vein, what I've in my comma separated string is as below, and how i'm trying to get is also mentioned,
Result I'm getting is on each iteration is like, it alerts each digit like 0 then 9 then 3 then decimal point (.) and so on.
I want to get 093.33 on first iteration , 789.23 on 2nd iteration and so on...
var
CommaStr =
"093.33, 789.23, 003,21, 123.43, 188.02"
;
for
(
var
j = 0; i < CommaStr .split(
','
).length; j++) {
alert(CommaStr[j]);
}
Reply
Answers (
3
)
Found an error in below console.
Show Weekly data on calendar