Hey, I have a requirement to add my TD dynamically and I am able to set all the required properties to TD dynamically using javascript except one. How to add property which says not to wrap td data inside table.. i.e something statically we do using <TD nowrap> I tried using javascript as element.style.noWrap = true and element.noWrap = true
Please try with document.formname.getElementById("elementName").style.wordWrap="normal" the syntax elementId.style.wordWrap="break-word" is used for introducing word wrap. I think this is the reverse case
This may not be quite what you're looking for, but if you hide the overflow it won't wrap. The potential problem with this is that you will probably also need to explicitly set the width and height of the element (otherwise it will collapse completely) e.g.
There may also be a way to set just the horizontal overflow (elem.style.overflowX, maybe) in which case you would only need to specify the width, e.g.
[ January 04, 2007: Message edited by: Joel Jorgensen ]
Hey Ajith, Thanks for reply. Welcome to Javaranch. Unfortunately your post didn't work. Hey Joel, your solution also didnt work for me.. Is that something you tried and working?
Thanks Liu. Hey Eric, your solution worked. I was mentioning it on the TR object instead of TD object. After applying on TD object, it worked. Thanks for your help as always..