• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

Trimming Javascript Expression

If I have a value such as (90000), what syntax would I need to use in javascript to only get 90000?
0
metalteck
Asked:
metalteck
1 Solution
 
leakim971PluritechnicianCommented:
var value = "(90000)";
value = value.replace(/\(|\)/g,"");
// now value = 90000

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now