tkm Posted March 3, 2008 Share Posted March 3, 2008 Hello mates, Can anyone please tell me how can I first convert two comma separated string into number and then add them in javascript? So I want to add 2 string like: 1,245+34,78,236 Any sample code would be greatly appreciated. Thank you. Quote Link to comment Share on other sites More sharing options...
fenway Posted March 4, 2008 Share Posted March 4, 2008 String out the commas with a regex, then eval. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.