in the old html. before the xhtml reformation, we referred to forms by
names or numbers,
in jq, while keeping with the old teachings, I would say
$('[EMAIL PROTECTED]')[0].reset();
But I'd still code
document.forms.myform.reset();
because there is no magic involved. If I wanted some chainable magic
$('[EMAIL PROTECTED]').each( function (){this.reset();}) ...
and carry on with this unlikely chain.
Of course
$('textarea, [EMAIL PROTECTED]', form).val('');
clears the text fields, but what of the buttons and selects? A simple
combo would be prudent.
On 11/10/06, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> of course the standard js method is
>
> document.forms[0].reset()
>
>
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/