Im using the following code snippet
.append(
$('<td>').append(
$('<a>').attr({
href: '#',
class: 'assDelete',
dataassetid: assetObj.ID
}).append(
$('<img>').attr({
class: 'toolmeup',
title: 'Delete Asset',
src: '../_resources/images/icons/delete.png'
})
))
However ie8 chokes on the class attribute saving ‘Experession Expected’
If i remove the class the code executes correctly???
Edit
I can get around the issue by using ‘addClass’
IE does not like
classas its is reserved,var class = 123would similarly fail, instead: