Tuesday, January 17, 2012

JavaScript setAttribute method does not work in the SharePoint 2010

I used setAttribute method to changed the CSS class. (ex: item.setAttribute('”class”,”cssClass”)). but this method didn't worked for me. then i used className property  to set the css and it worked for me.

item.className = "active"; 
Post a Comment