Link to home
Start Free TrialLog in
Avatar of VirusMinus
VirusMinusFlag for Australia

asked on

javascript array looping and string concatenation

I have a string of product options thats one huge string where the options are separated by the ~ character. total options are over 3000.

Whats the fastest (best performing) way to make this into a select with each of the product options going into <option>product option</option> elements?

I can use jQuery also
ASKER CERTIFIED SOLUTION
Avatar of Steve Krile
Steve Krile
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VirusMinus

ASKER

Nope...can't prove it.  But, it's pretty darn efficient.
However - your question is about parsing a concatenated string, not concatenating a string.  So, is this *more* efficient than parsing using javascript and some sort of i++ loop - don't know.
Not exactly but it helped