I hope I got the filter right... I looked back at some of my similar code,

jQuery.fn.randomOne=function(){
        return this.eq( Math.floor(Math.random()*this.length));
}

is a simple plugin to get (in my case) one random element.... and this
is the jq element.

On 1/13/07, Ⓙⓐⓚⓔ <[EMAIL PROTECTED]> wrote:
> 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
> > [email protected]
> > http://jquery.com/discuss/
> >
>
>
> --
> Ⓙⓐⓚⓔ - יעקב   ʝǡǩȩ   ᎫᎪᏦᎬ
>


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

Reply via email to