Thursday, June 14, 2012

Javascript-- Style set Attribute not working in IE7

In some case, we want to add a style to DOM element , normally  you will do like this,




this will work in most cases, but some time when you are working for IE7 or IE6, this will not work,

so the solution as below:



Now you can add css style to Dom element in IE7 or IE6

No comments:

Post a Comment