[jQuery] Re: Data returned (from a JQuery function) with the $ character cause to error in IE

2009-02-20 Thread James
The $ inside a string will not be mistaken for the jQuery $. There's some other part of your code that is causing the issue. It would help if you could post a link or more of your code. On Feb 19, 7:08 am, major mei...@gmail.com wrote: sorry,I don't have a link. If I run a command like:

[jQuery] Re: Data returned (from a JQuery function) with the $ character cause to error in IE

2009-02-19 Thread Mike Alsup
-- 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

[jQuery] Re: Data returned (from a JQuery function) with the $ character cause to error in IE

2009-02-19 Thread Richard D. Worth
Is #field a text input? Perhaps you want .val() instead of .text() ? - Richard On Thu, Feb 19, 2009 at 8:56 AM, major mei...@gmail.com wrote: assume the following code: -- price = $(#field).text(); -- This code cause

[jQuery] Re: Data returned (from a JQuery function) with the $ character cause to error in IE

2009-02-19 Thread major
#field is: span id=field$ 25.00/span On Feb 19, 5:04 pm, Richard D. Worth rdwo...@gmail.com wrote: Is #field a text input? Perhaps you want .val() instead of .text() ? - Richard On Thu, Feb 19, 2009 at 8:56 AM, major mei...@gmail.com wrote: assume the following code:

[jQuery] Re: Data returned (from a JQuery function) with the $ character cause to error in IE

2009-02-19 Thread major
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