javascriptcssinternet-explorer-9

-ms-transform for IE9 in JavaScript


How do you set the property of a Div for "-ms-transform" in JavaScript?

I want to rotate a DIV like follows:

-ms-transform: rotate(30deg);

Any help would be great :)


Solution

  • Try this:

    document.getElementById('myDiv').style.msTransform = 'rotate(30deg)';