Matt Grimm schrieb:
> In order to access the underlying DOM object, you use the .get(n) method on 
> the jQuery object. 
>
> $("#editarticle/form").get(0).elements.length;
> $("#editarticle/form").get(0).reset();
>
> Or, using jQuery, you could get all relevant form elements like so:
>
> $("#editarticle/form :input");
>
> And reset them like so:
>
> $("#editarticle/form :input").val('')

Many thanks are going out for the many replies send. Best mailing list
ever ;)

I think it would be a good idea to include some things mentioned here
into the getting started guide. as soon as i find the time to setup my
site i'll write a short article about getting started with jquery and
the power of it's selectors with a few demos.

I also have never seen something like: $("#editarticle/form :input")
before. Can this be extended like:
$("#editarticle/form :[EMAIL PROTECTED]'text']") ?

This line was also new for me:

$('textarea, [EMAIL PROTECTED]', form).val('');

So i can use the "," inside a selection to add another selection ?



best regards,
Truppe Steven

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to