469,641 Members | 1,283 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,641 developers. It's quick & easy.

Child Nodes in Javascript

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
2 1390
acoder
16,027 Expert Mod 8TB
Hello and welcome to The Scripts.

See this link.
Feb 7 '07 #2
mrhoo
428 256MB
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.

Similar topics

4 posts views Thread by Grant Wagner | last post: by
12 posts views Thread by Dino L. | last post: by
7 posts views Thread by amruta | last post: by
14 posts views Thread by marfi95 | last post: by
4 posts views Thread by javascript | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.