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
Hello,

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?

Thanks,

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

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

See this link.
Feb 7 '07 #2

100+
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.