I'm attempting to add an img tag via the following jQuery:
var parentElement = $("#sidebar");
var img1 = $('<img />', {
id: 'headerImageLeft',
src: '/Images/Header/FGM.jpg',
class: 'img-responsive',
style: 'float: left;',
width: 80,
alt: ''
});
img1.appendTo(parentElement);
While this seems to work correctly, I'm not certain this is the proper way to add a class. In Visual Studio 2013, I'm getting a design time warning saying I'm using a future reserved word, Is this the correct way to add a class?