Hi!
Very simple: this is the (DOM)-object and $(this) is a jquery-object
containing the (DOM)-object. To use jQuery methods you need a jQuery
object!

Regars,
Mario


On 26 Jun., 15:02, x-herbert <[EMAIL PROTECTED]> wrote:
> Hi jQueries;
>
> what is the different between this and $(this) ??
>
> I try the follow lines
>
> $("#form_zuw input[readonly]").each(function() {
>         this.addClass("input_readonly");
>
> });
>
> likehttp://jquery.bassistance.de/jquery-getting-started.html
>
> $(document).ready(function() {
>         // use this to reset several forms at once
>         $("#reset").click(function() {
>                 $("form").each(function() {
>                         this.reset();
>                 });
>         });
>
> });
>
> and Firebug say "addClass is not a Function"...???
>
> and this is running
>
> $("#form_zuw input[readonly]").each(function() {
>         $(this).addClass("input_readonly");
>
> });
>
> Can you explain the different?
>
> Thanks
> x-herbert

Reply via email to