Solved

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

Posted on 2013-01-22
3
412 Views
Last Modified: 2013-02-06
How do i remove these two special characters [ ]  in a jquery string?
0
Comment
Question by:cbrune
  • 2
3 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 38806343
example of string?
0
 

Author Comment

by:cbrune
ID: 38806364
[0.034]
0
 
LVL 82

Accepted Solution

by:
leakim971 earned 500 total points
ID: 38806406
var s = "[0.034]";
s = s.replace(/\[|\]/g, "");
alert( s );

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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now