I'm using Jquery 1.3 and this is the code i've isolated the code that throws an error in firebug as follows: "G is undefined"
var product = $("#id :selected"); // This is a dropdown
var prodTxt = product.text(); // Returns string as expected
var price = prodTxt.match(/\$[0-9]{3}/); // Commenting this out removes the error.
//var price = prodTxt.match(/\$[0-9]*/);
I thought it had something to do with the */ in the regex but still doesn't work.
The regex looks for any price as indicated by a dollar sign.
I suppose there are other workarounds and I may just do that, but I'm still confused as to what I am doing wrong. Thanks for your help.
UPDATE-SOLVED
var price = String(prodTxt.match(/\$[0-9]{3}/));
Not sure why that worked. I'm sure someone much smarter than me could explain how not typecasting it infuriated the ominous "g" variable.