Thanks Nic,

This helped me get these stupid forms done and out of my hair.

~Steve
http://goodcf.instantspot.com/blog



Nicholas M Tunney wrote:
> You can add a focus event listener to each form input text element to 
> clear it when a user tabs to the field, or use onFocus="" for each. The 
> method that is called would look something like this:
>
> function clearFormField (elID) {
>     document.getElementById(elID).value = '';
> }
>
> Nic
>
> Steve Good wrote:
>   
>> So I know how to clear form fields when they are clicked using 
>> onClick="this.value=''" but how do I clear them when tabbing through the 
>> form?  I looked at onActivate, but it seems pretty much unsupported.  I 
>> also read this article 
>> http://www.mindpalette.com/tutorials/clear_defaults/index.php , but I 
>> have around 50+ fields, and the thought of writing a script that 
>> addresses each field individually does not put a smile on my face.  
>> Anyone have a quick and dirty method of getting this done like the 
>> onClick method? 
>>
>> Thanks again!
>>   
>>     
>
>
>   

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:302236
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