|
Facts -
HTML and Javascript
|
|
Thursday, 29 October 2009 21:52 |
|
This problem description deals with jQuery 1.3.2.
Often I get the following javascript error:
(E || "").replace is not a function in jquery-1.3.2.min.js
This error occurs when I apply the function jQuery.trim on a variable that contains a number instead of a string. So I have to replace the following javascript code:
var a = jQuery.trim(b);
The statement should be:
var a = jQuery.trim(new String(b));
|