Editing css by js in ie giving error

Posted by user307635 on Stack Overflow See other posts from Stack Overflow or by user307635
Published on 2010-04-30T13:45:15Z Indexed on 2010/04/30 13:47 UTC
Read the original article Hit count: 283

Filed under:
|
|
|
|

i need to do this.

document.styleSheets[i].rules[1].style.cssText = "cursor: url(images/grabbing.cur), default !important;";

and if i m checking alert(document.styleSheets[i].rules[1].style.cssText);

its giving "cursor: !important"

why its not setting the whole string in this css.

its a problem in ie only . in firefox its not a problem

© Stack Overflow or respective owner

Related posts about ie

Related posts about error