sorry,I don't have a link.
If I run a command like: $("#field").text(); or any other JQuery
command which returns a string with the $ character. (for example: "$
21.3")
How can I tell javascript not to relate the $ in "$ 21.3"  as a JQuery
command?


On Feb 19, 4:20 pm, Mike Alsup <mal...@gmail.com> wrote:
> > --------------------------------------
> >price= $("#field").text();
> > --------------------------------------
> > This code cause the following error in IE: "object doesn't support
> > this property or method".
> > $("#field").text(); returns a string, like: "$21.3". (the data is
> >price).
> > I guess the $ character (of "$21.3") make JQuery confused as it thinks
> > this is a function.
> > BUT, when I write something like this:
> > var htmlOut = '<span>' + $("#field").text();  + '</span>'
> > No error occurs!
> > What may cause this bug in IE to happen?
> > Thanks,Major
>
> That doesn't make sense, both statements should execute fine.  Can you
> post a link?

Reply via email to