try this
var x = $('#total-price').text();
x = x.replace("$","");
----- Original Message -----
From: "hiddenpearls" <[email protected]>
To: "jQuery UI" <[email protected]>
Sent: Tuesday, August 04, 2009 9:05 AM
Subject: [jquery-ui] remove the $ from the string.
>
> i m setting the price of the products as $('#total-price').text() .
> it shows like this $800.
>
> now i want to remove the $ from $800 and want to use just 800 in my
> code .
> how i can remove this $ from string $800 ?
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---