You're welcome. Just remember that javascript is case-sensitive.

On Tue, Jan 4, 2011 at 10:39 AM, Orlini, Robert <[email protected]>wrote:

>
> That did it. Thank you Mike and Russ!
>
> RO
>
> -----Original Message-----
> From: "Russ Michaels" <[email protected]>
> Sent: Tuesday, January 4, 2011 10:36am
> To: "cf-talk" <[email protected]>
> Subject: Re: SOT: Show time in field on click
>
>
> try this
>
> document.getElementById('myDate').value = my_time;
>
> your field must have an id of "myDate"
>
> e.g.
> <input type="text" name="myDate"  id="myDate">
>
> Russ
> On Tue, Jan 4, 2011 at 3:27 PM, Michael Grant <[email protected]> wrote:
>
> >
> > No, they refer to the name attribute.
> > Otherwise it's document.getElementById("myDate").
> >
> >
> > On Tue, Jan 4, 2011 at 10:26 AM, Ian Skinner <[email protected]> wrote:
> >
> > >
> > >  On 1/4/2011 7:16 AM, Orlini, Robert wrote:
> > > > Still not showing when I click the button. I also tried putting
> my_time
> > > into the field.
> > > >
> > > > RO
> > >
> > > document.myForm.myDate.value = my_time;
> > >
> > > IIRC, I believe that those refer to the ID's of DOM elements, not
> names.
> > >  Try changing your form to.
> > >
> > > <form id="myForm">
> > > <input id="myDate" type="text" size="10" />
> > >
> > >
> > >
> >
> >
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:340376
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to