jQuery.attrHooks.className

by Timmy Willison

JavaScript

if ( jQuery.support.getSetAttribute ) {
    jQuery.attrFix.className = "class";
}

console.log(

 jQuery('<div/>', { className: 'foo' }) 
    
);