There's an easier way to do this...

Rather than using a br and assigning an id to it, use a div. Divs have built
in properties that aren't included in br tags. 

-----Original Message-----
From: Chad Gray [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 11, 2008 12:34 PM
To: CF-Talk
Subject: (ot) javascript help

Can any javascript gurus tell me why this does not work?  I want the <br>
tag to display on the page so I get a carriage return between the two pieces
of text "Foo" and "Moo".  I get this error in Firbug:
document.tabbedTicket.FTDTYPEe has no properties


<script>
function makeNewEntry() {
document.tabbedTicket.FTDTYPEe.style.visibility = 'visible';
document.tabbedTicket.FTDTYPEe.style.display = ''; } </script>

<form action="preferences.cfm" method="post" id="tabbedTicket"
name="tabbedTicket">

<input value="+" type="button" style="font-size:9px;
"onclick="makeNewEntry();" title="Add New FTD 

Type"><br />
Foo
<br id="FTDTYPEe" style="visibility:hidden; display: none;" /> Moo </form>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307260
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to