<form id="myform"...>

document.getElementById('myform').reset();

On 6/9/07, Walter Conti <[EMAIL PROTECTED]> wrote:
>
> I have a form that is loaded "display:none" and I make it visible with
> <a
> href="javaScript:makeFormVisible('myForm');document.forms['myForm'].resetButton.click()">...</a>
> and at the same time I reset it to clean up the previous usage. This works
> ok.
>
> Instead of using the "click()" I have tried:
> document.forms['myForm'].reset();
> document.form.myForm.reset();
> document.forms[0].reset;
> document.myForm.reset();
>
> but IE6 keeps telling that "the property or method is not available".
> Couldn't google out any good explanation. Please help.
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
ColdFusion 8 beta – Build next generation applications today.
Free beta download on Labs
http://www.adobe.com/cfusion/entitlement/index.cfm?e=labs_adobecf8_beta

Archive: 
http://www.houseoffusion.com/groups/Javascript/message.cfm/messageid:4211
Subscription: http://www.houseoffusion.com/groups/Javascript/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.33

Reply via email to