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

How do i remove these two special characters [ ] in a jquery string?

How do i remove these two special characters [ ]  in a jquery string?
0
cbrune
Asked:
cbrune
  • 2
1 Solution
 
leakim971PluritechnicianCommented:
example of string?
0
 
cbruneAuthor Commented:
[0.034]
0
 
leakim971PluritechnicianCommented:
var s = "[0.034]";
s = s.replace(/\[|\]/g, "");
alert( s );

test page : http://jsfiddle.net/ReAyV/
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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