Marc Jansen schrieb:
> Hello Steven,
>
> Truppe Steven schrieb:
>
>> You are right, i just want to empty all input/textarea fields. I'm
>> trying to use the "elements" attribute but i get an error telling me
>> that the property is not known:
>>
>> var x = $("#editarticle/form").elements.length;
>>
>>
> In this case, 'x' contains a jQuery-Objekt, not a DOM-element.
>
Actually, $(...) is the jQuery object, and that doesn't have an elements
property. This should work better:
var x = $("#editarticle/form")[0].elements.length;
>> I'm also not able to run the reset() function with:
>> $("#editarticle/form").reset();
>>
> Try this (surely untested, and I'm absolutely *not a pro*):
>
You are a pro (= professional) when you get money for what you are
doing, and I don't know of anyone that is paid for working on jQuery :-)
--
Jörn Zaefferer
http://bassistance.de
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/