var _options = {
button_delete_src: '/Content/images/delete_button.png'
};
var _css = {
button_delete: {
'background': 'url(\'' + _options.button_delete_src + '\') no-repeat;'
}
};
$('<div></div>').css(_css.button_delete).appendTo(container);
Created div does not have background css set in rendered html. Can you help me?
EDIT: working in IE, but not in Chrome
Finally got it working: