appenChild in MSIE fails when used with $("#id").h
Hi Guys,
This is my first post in this forum, hello everyone!
Well, currently I am struggling with a small problem related to MSIE. Works in Safari, FF, Chrome and Opera. Basically, I have an element in the head... its a <style> tag. I have assigned this tag an id, so that I can change it's contents later using jquery's $("#id").html(....
MSIE fails at this because html() works with appendChild() and apparently MSIE isn't so good at supporting that.
The reason I am writing to the <style> tag's content is because an element in the body is styled according to certain values gathered from server-side responses using PHP. These values then provide the contents to be written (fired by an event without refreshing the page), into that <style> tag. I have a feeling that there is a better way to do this than writing to the contents of this tag, is there?
If not, how can I solve this problem? All help is greatly appreciated!
Thanks for your time!