By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,331 Members | 1,134 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,331 IT Pros & Developers. It's quick & easy.

Child Nodes in Javascript

P: 2

I have dynamically created one child node (text node) inside the division control.

Now, i would like to change the style specific properties of this node.

Can anybody guide me?


Feb 7 '07 #1
Share this Question
Share on Google+
2 Replies

Expert Mod 15k+
P: 16,027
Hello and welcome to The Scripts.

See this link.
Feb 7 '07 #2

P: 428
text nodes have no style, to put it bluntly. You need to create a container for the text node- a span or a heading,say- or, if you are in a paragraph instead of a div you can use any of the phrase elements= em, strong, and so on.

In html, only elements have style...
Feb 8 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.