[jQuery] rewrite .text in Internet Explorer
Any ideas how to update the following Jquery code to work in IE?
It works in Firefox... Opera.. and not in Safari for window.. (so it
works in 2 out of 4 browsers)
// Load XML document based on language
var langSheet = "language_sheet_" + country + ".xml"
$.ajax({
type: "GET",
url: langSheet,
dataType: "xml", // specify the return type as xml
success: function(xmlDoc){
$(xmlDoc).find('subAboutLoc').each(function()
{
var item_text = $(this).text();
$('#subAboutLoc').text(item_text);
});
}
});