try document.getElementById("FTDTYPEe").  And then go get some library
that will take care of all that for you (jQuery, Prototype, etc.).

cheers,
barneyb

On Wed, Jun 11, 2008 at 10:34 AM, Chad Gray <[EMAIL PROTECTED]> wrote:
> 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:307257
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to