I have the following _renderItem
function in jquery where it has <img>
tags with inline attributes height and width. However these attributes are NOT working in internet explorer as IE would require them to be written in CSS.
So, how do I insert that styling in here?
Following is renderItem
function.
.data('autocomplete')._renderItem = function(ul, item) {
return $('<li>')
.data('item.autocomplete', item)
.append("<a>"+"<img src ='/account/"+item.id+"/icon/logo' onerror='$(this).hide()' height='40' width='40' alt=''/>" + " " + " " +item.label+"</a>")
.appendTo(ul);
};
height='40' width='40'
works everywhere except IE?