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

use javascript to change <Td nowrap>

P: n/a
Hi,

I was wondering is there any way to change the width property of a
table cell <Td id="test"to no wrap by using
document.getElementById(test).SOMEMETHOD

Thanks for your time and help
:)

Sep 15 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Katie wrote on 15 sep 2006 in comp.lang.javascript:
Hi,

I was wondering is there any way to change the width property of a
table cell <Td id="test"to no wrap by using
document.getElementById(test).SOMEMETHOD
<script type='text/javascript'>
function toggleIt() {
var myDiv = document.getElementById('myDiv')
myDiv.noWrap = ! myDiv.noWrap
}
</script>

<input type='button' value='Toggle' onclick='toggleIt();'>
<br><br>
<div id='myDiv' style='width:50px;border:black 2pt dotted;'>
This is a wrap to nowrap test
</div>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Sep 15 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.