Possible Duplicate:
jQuery text() call preserves newlines in Firefox but not in IE
I got some issues with this code in IE:
var frameFromValues = $('#getData').contents().find("body table tbody tr#c_"+ currencyFrom).text().split('\n');
console.log(frameFromValues);
Console in Chrome shows:
["", " KRA", " Fenix", " 1", " 1", " "]
Console in IE 9 shows:
KRAFenix11
And because of that, when I try to get a value by its index like this:
cFrom = frameFromValues[5];
It says "Undefined" in IE, but it works perfectly fine in Chrome.
How do I make it work in IE?