|
Question:
Home »
Web development
:
Why this doesn't work in IE?Why this structure doesn't work in my script in MSIE Browsers?
Lets suppose you have styling element which is div container. You iterate from 0 to 99 and you want to join text 'exampleX' with the styling info from styleElement.
Probably you are missing "+=" operator and you are using operator "=" which will result in getting only last example99. In order to join all the result into one you will need to "append" to the current elem.innerHTML and not to replace it with "=" operator. Here is complete javascript sample:
Vote:
Please vote! Your opinion matters!
If you haven't found what you've looking for, post a question
|
|