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:
--
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
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
#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:
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
5 matches
Mail list logo