Jump to content

Can I Do It This Way?


migroo

Recommended Posts

Okay I am trying to set the size of some text via a xml document.

document.write('<p class=" '.xmlDoc.getElementsByTagName("size")[0].childNodes[0].nodeValue.' " >');

I have three class set: small, regular, and large. Now I know the xml document is updating properly from my forms and I am just wandering what I am doing wrong with this line of coding?Thank you and any help will be much appreciated.

Link to comment
Share on other sites

Okay I got it never mind.I just needed to use a "," instead of a "."

document.write('<p class="',xmlDoc.getElementsByTagName("size")[0].childNodes[0].nodeValue,'">');

Okay thank you all.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...