I have a var vTotal with the string value of “$120.00 USD”, I am trying to get “120.00” out of that string. (The string will be dynamic.)
I am trying to use:
[COLOR=DarkRed]alert[COLOR=Navy][B
[COLOR=Gray]// Sends An Alert Of “$120.00 USD”
[COLOR=DarkRed]alert[B][COLOR=Navy]([COLOR=SeaGreen]match[B][COLOR=Navy[B][COLOR=Navy
[COLOR=Gray]// No Alert Is Shown
// FireFox Error Console Shows That It’s Null
[B]Firefox Error:
Error: vTotal.[COLOR=SeaGreen]match[COLOR=Navy][B
I am pretty new to JavaScript but am familiar with xHTML/CSS and PHP. However, I’d appreciate a detailed response as to why it may not be working and what can be done to fix it.
Thanks ?