Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Accessing form name
- From: schalk at volume4.com (Schalk)
- Subject: [Javascript] Accessing form name
- Date: Mon Nov 21 07:53:26 2005
diego nunes wrote:
>On 21/11/05, Schalk <schalk@xxxxxxxxxxx> wrote:
>
>
>>But here is my problem:
>>I want to create a simple generic reset function for forms within
>>Joomla. Now, I do not know beforehand what the form name or id is and
>>therefore wanted to determine this with JavaScript.
>>
>>
>
> getElementsByTagName doesn't return a simple object, but an Array
>of the forms in the page. If you wanna get the first form, try
>using...
>function resetForm() { var tF, tFN;
> tF=document.forms[0]; tFN=tF.name; alert(tFN);
> tF.reset();
>}
>
> btw: my name is "diego nunes". "amplexos" is a portuguese word for
>"cheers", or something like that.
>
Thanks All. I am sure with all the responses I will be able to put
together something that works. If not, I will be back.
--
Kind Regards
Schalk Neethling
Web Developer.Designer.Programmer.President
Volume4.Business.Solution.Developers
- References:
- [Javascript] Accessing form name
- From: Schalk
- [Javascript] Accessing form name
- From: diego nunes
- [Javascript] Accessing form name
- From: Schalk
- [Javascript] Accessing form name
- From: diego nunes
- [Javascript] Accessing form name
- Prev by Date: [Javascript] Accessing form name
- Next by Date: [Javascript] Newbie question
- Previous by thread: [Javascript] Accessing form name
- Next by thread: [Javascript] Newbie question
- Index(es):