I am trying to change the style of gridview footer's style due to change of aggregated footer alignment based on three conditions in IE9 but it just keeps on throwing me an error of undefined,my question is how can I change the style any help is appreciated:
.rgFooter, .rgFooterDiv
{
background: none !important;
background-color: transparent !important;
width: 100% !important;
/*max-width:779px;*/
}
To:
.rgFooter, .rgFooterDiv
{
background: none !important;
background-color: transparent !important;
width: 100% auto!important;
}
only using javascript no JQuery. I tried so far:
var mydiv = document.getElementById("mygrid").className;
mydiv.setAttribute("style", "width: 100% auto !important; background: none !important; background-color: transparent !important;");