Solved

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

Posted on 2013-01-22
3
414 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

809 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