Could anyone tell me why the following code doesnt work in ie? it works in every other browser and just comes up as undefined in ie:
var infoTemplate = '<div style="text-align:left"><h4 style="color:#0068a6;font-size:16px;margin:0px 0px 10px 0px;">%Title</h4><strong>%Tel</strong><br /><br />%Add</div>';
var seletedMarker = null;
function composeInfoString(row) {
var $row = $(row);
return infoTemplate.replace('%Title', $row.find('.itemtitle a').html())
.replace('%Tel', $row.find('.tel').html())
.replace('%Add', $row.find('.add').html());
}
%Title, %Tel, %Add all come up as undefined in IE. Any help gratefully apreciated.