this is this here and that there!
inside the each, this is a element.
inside the filter it's the jq object that contains all your actionform
classed items inside myDiv.

On 1/13/07, bmckenzie <[EMAIL PROTECTED]> wrote:
>
> Greetings.
>
> I'm trying to get a list of forms from a DIV where the form's "done" input
> is set to 1 or 0 .
>
> Why does this code throw an error ("this.done.value has no properties") ?
>
>    var myForms = $('.actionForm', myDiv).filter(function(){
>       return this.done.value==1 ;
>    });
>
> I can get the values like this:
>
>    var myForms = $('.actionForm', myDiv);
>   $( myForms ).each(function(){
>      alert(this.done.value); //displays 1 or 0
>    });
>
> So I guess this depends on what the meaning of "this" is, eh?
>
> Bruce
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/What-is-%22this%22-question%2C-this-one-about-filters-tf2973568.html#a8319669
> Sent from the JQuery mailing list archive at Nabble.com.
>
>
> _______________________________________________
> jQuery mailing list
> discuss@jquery.com
> http://jquery.com/discuss/
>


-- 
Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to